Click or drag to resize

CvInvokeEstimateAffinePartial2D Method

http://www.emgu.com
Computes an optimal limited affine transformation with 4 degrees of freedom between two 2D point sets.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static Mat EstimateAffinePartial2D(
	IInputArray from,
	IInputArray to,
	IOutputArray inliners,
	RobustEstimationAlgorithm method,
	double ransacReprojThreshold,
	int maxIters,
	double confidence,
	int refineIters
)

Parameters

from
Type: Emgu.CVIInputArray
First input 2D point set.
to
Type: Emgu.CVIInputArray
Second input 2D point set.
inliners
Type: Emgu.CVIOutputArray
Output vector indicating which points are inliers.
method
Type: Emgu.CV.CvEnumRobustEstimationAlgorithm
Robust method used to compute transformation.
ransacReprojThreshold
Type: SystemDouble
Maximum reprojection error in the RANSAC algorithm to consider a point as an inlier. Applies only to RANSAC.
maxIters
Type: SystemInt32
The maximum number of robust method iterations.
confidence
Type: SystemDouble
Confidence level, between 0 and 1, for the estimated transformation. Anything between 0.95 and 0.99 is usually good enough. Values too close to 1 can slow down the estimation significantly. Values lower than 0.8-0.9 can result in an incorrectly estimated transformation.
refineIters
Type: SystemInt32
Maximum number of iterations of refining algorithm (Levenberg-Marquardt). Passing 0 will disable refining, so the output matrix will be output of robust method.

Return Value

Type: Mat
Output 2D affine transformation (4 degrees of freedom) matrix 2×3 or empty matrix if transformation could not be estimated.
See Also