MATLAB File Help: cv.solvePnPRansac Index
cv.solvePnPRansac

Finds an object pose from 3D-2D point correspondences using the RANSAC scheme

[rvec, tvec, inliers] = cv.solvePnPRansac(objectPoints, imagePoints, cameraMatrix)
[...] = cv.solvePnPRansac(..., 'OptionName', optionValue, ...)

Input

Output

Options

The function estimates an object pose given a set of object points, their corresponding image projections, as well as the camera matrix and the distortion coefficients. This function finds such a pose that minimizes reprojection error, that is, the sum of squared distances between the observed projections imagePoints and the projected (using cv.projectPoints) objectPoints. The use of RANSAC makes the function resistant to outliers.

See also