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
static constexpr bool isNotEqualEps(const T value)
Returns whether a value is not smaller than or equal to a small epsilon.
Definition Numeric.h:2246
This class implements a 3x3 square matrix.
Definition SquareMatrix3.h:89
VectorT2< Scalar > Vector2
Definition of a 2D vector.
Definition Vector2.h:28
SquareMatrixT3< Scalar > SquareMatrix3
Definition of the SquareMatrix3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with ...
Definition SquareMatrix3.h:43
Namespace of the Geometry library.
Definition AbsoluteTransformation.h:20
The namespace covering the entire Ocean framework.
Definition Accessor.h:15