[][src]Function opencv::sfm::fundamental_from_correspondences7_point_robust

pub fn fundamental_from_correspondences7_point_robust(
    x1: &dyn ToInputArray,
    x2: &dyn ToInputArray,
    max_error: f64,
    f: &mut dyn ToOutputArray,
    inliers: &mut dyn ToOutputArray,
    outliers_probability: f64
) -> Result<f64>

Estimate robustly the fundamental matrix between two dataset of 2D point (image coords space).

Parameters

  • x1: Input 2xN Array of 2D points in view 1.
  • x2: Input 2xN Array of 2D points in view 2.
  • max_error: maximum error (in pixels).
  • F: Output 3x3 fundamental matrix such that inline formula.
  • inliers: Output 1xN vector that contains the indexes of the detected inliers.
  • outliers_probability: outliers probability (in ]0,1[). The number of iterations is controlled using the following equation: inline formula where inline formula, inline formula and inline formula are the number of iterations, the inliers ratio and minimun number of selected independent samples. The more this value is high, the less the function selects ramdom samples.

The fundamental solver relies on the 7 point solution. Returns the best error (in pixels), associated to the solution F.

C++ default parameters

  • outliers_probability: 1e-2