38 return m[0][0] * m[1][1] * m[2][2]
39 + m[0][1] * m[1][2] * m[2][0]
40 + m[0][2] * m[1][0] * m[2][1]
41 - m[2][0] * m[1][1] * m[0][2]
42 - m[2][1] * m[1][2] * m[0][0]
43 - m[2][2] * m[1][0] * m[0][1];
95 double D =
X.Determinant();
107 double A =
X.Determinant();
120 b =
X.Determinant() /
D;
132 c =
X.Determinant() /
D;
general : Matrix3 is a class for handling 3x3 Matrix manipulation.
double m[3][3]
we define the Matrix3 as 3 colums of 3 rows
double calcDeterminant3(const M &m)
calculate the determinat of a 3x3 matrix using the sarrus formula
static const double A(-0.75)
void FitPolynom(T x, T xend, T y, double &a, double &b, double &c)
fit a second order polynom to a data set
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.