|
SpatiumLib
|
Namespaces | |
| geom2d | |
| geom3d | |
| gfx2d | |
| gfx3d | |
| idx | |
| imgproc | |
| stats | |
Classes | |
| class | Image |
| Templated image container. More... | |
| class | ImageIO |
| Read and write images. More... | |
| class | Matrix |
| Mathematical matrix with an arbitrary number number of rows and columns. More... | |
| struct | PixelValue |
| Value of an image pixel with arbitrary data type and channel count. More... | |
| struct | PixelValue< T, 1 > |
| Value of an image pixel with arbitrary data type and 1 channel. More... | |
| struct | PixelValue< T, 3 > |
| Value of an image pixel with arbitrary data type and 3 channels. More... | |
| struct | PixelValue< T, 4 > |
| Value of an image pixel with arbitrary data type and 4 channels. More... | |
| class | Vector |
| Vector in column-major order. More... | |
Functions | |
| double | factorial (int n) |
| Calculate the factorial. More... | |
| double | binomialCoefficient (int n, int k) |
| Calculate the binomial coefficient. More... | |
| int | solveQuadratic (double a, double b, double c, double &x1, double &x2) |
| Solve a quadratic equation: ax^2 + bx + c = 0. More... | |
| int | solveCubic (double a, double b, double c, double d, double &x1, double &x2, double &x3) |
| Solve a qubic equation: ax^3 + bx^2 + cx + d =0. More... | |
Variables | |
| const double | PI = std::atan(1) * 4 |
| Pi constant. More... | |
| const double | Rad2Deg = 180 / PI |
| Radians to degrees conversion constant. More... | |
| const double | Deg2Rad = PI / 180 |
| Degrees to radians conversion constant. More... | |
|
inline |
Calculate the binomial coefficient.
Combinatorics: Choose a subset of K elements from a fixed set of N elements. 'N choose K'
| [in] | n | Number of elements in fixed set |
| [in] | k | Number of elements to choose |
|
inline |
Calculate the factorial.
Example: factorial(4) = 4! = 4*3*2*1 = 24
| [in] | n | A positive integer |
|
inline |
Solve a qubic equation: ax^3 + bx^2 + cx + d =0.
| [in] | a | First coefficient |
| [in] | b | Second coefficient |
| [in] | c | Third coefficient |
| [in] | d | Fourth coefficient |
| [out] | x1 | First solution (if exists). Lowest value |
| [out] | x2 | Second solution (if exists). |
| [out] | x3 | Third solution (if exists). Highest value |
|
inline |
Solve a quadratic equation: ax^2 + bx + c = 0.
| [in] | a | First coefficient |
| [in] | b | Second coefficient |
| [in] | c | Third coefficient |
| [out] | x1 | First solution (if exists). Lowest value |
| [out] | x2 | Second solution (if exists). Highest value |
| const double spatium::Deg2Rad = PI / 180 |
Degrees to radians conversion constant.
| const double spatium::PI = std::atan(1) * 4 |
Pi constant.
| const double spatium::Rad2Deg = 180 / PI |
Radians to degrees conversion constant.
1.8.15