This class implements functions to normalize geometric data.
More...
This class implements functions to normalize geometric data.
◆ calculateNormalizedPoints()
static SquareMatrix3 Ocean::Geometry::Normalization::calculateNormalizedPoints |
( |
Vector2 * |
points, |
|
|
const size_t |
number, |
|
|
SquareMatrix3 * |
points_T_normalizedPoints = nullptr |
|
) |
| |
|
static |
Normalizes the given 2D image points so that the root of the mean square distance of the normalized 2D points to the origin is equal to sqrt(2).
This function will return the identity transformation if no normalization can be determined.
- Parameters
-
points | The 2D points to normalize, can be invalid if 'number == 0' |
number | The number of points to be normalized, with range [0, infinity) |
points_T_normalizedPoints | Optional resulting transformation allowing to transform the normalized image points back to not-normalized image points |
- Returns
- The transformation matrix which was used to normalize the image points, will be normalizedPoints_T_points
◆ normalizedTransformation()
Normalizes a given 3x3 transformation matrix which is defined up to a scale factor forcing a 1 in the lower right matrix corner after normalization.
- Parameters
-
transformation | The transformation to normalize, with lower right corner not zero |
- Returns
- The resulting normalized transformation
- Template Parameters
-
T | The data type of the scalar to be used, either 'float' or 'double' |
◆ normalizeTransformation()
template<typename T >
void Ocean::Geometry::Normalization::normalizeTransformation |
( |
SquareMatrixT3< T > & |
transformation | ) |
|
|
static |
Normalizes a given 3x3 transformation matrix which is defined up to a scale factor forcing a 1 in the lower right matrix corner after normalization.
- Parameters
-
transformation | The transformation to normalize, with lower right corner not zero |
- Template Parameters
-
T | The data type of the scalar to be used, either 'float' or 'double' |
The documentation for this class was generated from the following file: