[][src]Function opencv::calib3d::estimate_affine_3d

pub fn estimate_affine_3d(
    src: &dyn ToInputArray,
    dst: &dyn ToInputArray,
    out: &mut dyn ToOutputArray,
    inliers: &mut dyn ToOutputArray,
    ransac_threshold: f64,
    confidence: f64
) -> Result<i32>

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

It computes block formula

Parameters

  • src: First input 3D point set containing inline formula.
  • dst: Second input 3D point set containing inline formula.
  • out: Output 3D affine transformation matrix inline formula of the form block formula
  • inliers: Output vector indicating which points are inliers (1-inlier, 0-outlier).
  • ransacThreshold: Maximum reprojection error in the RANSAC algorithm to consider a point as an inlier.
  • confidence: 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.

The function estimates an optimal 3D affine transformation between two 3D point sets using the RANSAC algorithm.

C++ default parameters

  • ransac_threshold: 3
  • confidence: 0.99