[−][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
Parameters
- src: First input 3D point set containing .
- dst: Second input 3D point set containing .
- out: Output 3D affine transformation matrix of the form
- 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