[−][src]Function opencv::calib3d::correct_matches
pub fn correct_matches(
f: &dyn ToInputArray,
points1: &dyn ToInputArray,
points2: &dyn ToInputArray,
new_points1: &mut dyn ToOutputArray,
new_points2: &mut dyn ToOutputArray
) -> Result<()>
Refines coordinates of corresponding points.
Parameters
- F: 3x3 fundamental matrix.
- points1: 1xN array containing the first set of points.
- points2: 1xN array containing the second set of points.
- newPoints1: The optimized points1.
- newPoints2: The optimized points2.
The function implements the Optimal Triangulation Method (see Multiple View Geometry for details). For each given point correspondence points1[i] <-> points2[i], and a fundamental matrix F, it computes the corrected correspondences newPoints1[i] <-> newPoints2[i] that minimize the geometric error (where is the geometric distance between points and ) subject to the epipolar constraint .