NDEVR
API Documentation
MatrixFunctions

Provides static utility functions for solving best-fit and affine matrix transformations. More...

Classes

struct  TransformSolveOptions
 Options controlling which degrees of freedom are solved when computing a best-fit transform. More...

Static Public Member Functions

static Matrix< fltp08Solve2DAffine (const Buffer< Vertex< 2, fltp08 > > &a, const Buffer< Vertex< 2, fltp08 > > &b)
 Solves for a 2D affine transformation between two sets of 2D points.
static Matrix< fltp08SolveBestFitTransform (const TransformSolveOptions &options)
 Computes the best-fit rigid or similarity transform between two point sets.
static Matrix< fltp08SolveLeastSquaredAffine (const Buffer< Vertex< 3, fltp08 > > &a, const Buffer< Vertex< 3, fltp08 > > &b)
 Solves for the least-squared affine transformation between two 3D point sets.

Detailed Description

Provides static utility functions for solving best-fit and affine matrix transformations.


Definition at line 519 of file MatrixFunctions.h.

Member Function Documentation

◆ Solve2DAffine()

Matrix< fltp08 > MatrixFunctions::Solve2DAffine ( const Buffer< Vertex< 2, fltp08 > > & a,
const Buffer< Vertex< 2, fltp08 > > & b )
static

Solves for a 2D affine transformation between two sets of 2D points.

Parameters
[in]aThe source 2D point set.
[in]bThe target 2D point set.
Returns
A 4x4 matrix encoding the 2D affine transformation.

◆ SolveBestFitTransform()

Matrix< fltp08 > MatrixFunctions::SolveBestFitTransform ( const TransformSolveOptions & options)
static

Computes the best-fit rigid or similarity transform between two point sets.

Parameters
[in]optionsThe solve options specifying point sets and which degrees of freedom to solve.
Returns
A 4x4 transformation matrix representing the best-fit transform from source to target.

◆ SolveLeastSquaredAffine()

Matrix< fltp08 > MatrixFunctions::SolveLeastSquaredAffine ( const Buffer< Vertex< 3, fltp08 > > & a,
const Buffer< Vertex< 3, fltp08 > > & b )
static

Solves for the least-squared affine transformation between two 3D point sets.

Parameters
[in]aThe source point set.
[in]bThe target point set.
Returns
A 4x4 affine transformation matrix minimizing the squared error between point sets.

The documentation for this class was generated from the following file: