8 #ifndef META_OCEAN_GEOMETRY_NORMALIZATION_H
9 #define META_OCEAN_GEOMETRY_NORMALIZATION_H
64 const T factor = T(1) / transformation[8];
66 return SquareMatrixT3<T>(transformation[0] * factor, transformation[1] * factor, transformation[2] * factor,
67 transformation[3] * factor, transformation[4] * factor, transformation[5] * factor,
68 transformation[6] * factor, transformation[7] * factor, 1);
71 return transformation;
81 transformation *= T(1) / transformation[8];
This class implements functions to normalize geometric data.
Definition: Normalization.h:26
static SquareMatrix3 calculateNormalizedPoints(Vector2 *points, const size_t number, SquareMatrix3 *points_T_normalizedPoints=nullptr)
Normalizes the given 2D image points so that the root of the mean square distance of the normalized 2...
static void normalizeTransformation(SquareMatrixT3< T > &transformation)
Normalizes a given 3x3 transformation matrix which is defined up to a scale factor forcing a 1 in the...
Definition: Normalization.h:75
static SquareMatrixT3< T > normalizedTransformation(const SquareMatrixT3< T > &transformation)
Normalizes a given 3x3 transformation matrix which is defined up to a scale factor forcing a 1 in the...
Definition: Normalization.h:58
This class provides basic numeric functionalities.
Definition: Numeric.h:57
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15