Start » Filter Reference » OpenCV » Camera Calibration And 3D Reconstruction » cvEstimateAffine2D

cvEstimateAffine2D


Module: OpenCV

Computes an optimal affine transformation between two 2D point sets.

Name Type Range Description
Input value
inFrom Point2DArray
Input value
inTo Point2DArray
Input value
inMethod CvEstimateAffine2DMethod
Input value
inRansacReprojThreshold Integer 0 - Maximum reprojection error in the RANSAC algorithm to consider a point as an inlier. Applies only to RANSAC.
Input value
inMaxIterations Integer 1 - The maximum number of robust method iterations.
Input value
inConfidence Double 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.
Input value
inRefineIterations Integer 1 - Maximum number of iterations of refining algorithm (Levenberg-Marquardt). Passing 0 will disable refining, so the output matrix will be output of robust method.
Output value
outAffineTransformation Matrix

Complexity Level

This filter is available on Basic Complexity Level.