[][src]Function opencv::calib3d::sampson_distance

pub fn sampson_distance(
    pt1: &dyn ToInputArray,
    pt2: &dyn ToInputArray,
    f: &dyn ToInputArray
) -> Result<f64>

Calculates the Sampson Distance between two points.

The function cv::sampsonDistance calculates and returns the first order approximation of the geometric error as: block formula The fundamental matrix may be calculated using the cv::findFundamentalMat function. See HartleyZ00 11.4.3 for details.

Parameters

  • pt1: first homogeneous 2d point
  • pt2: second homogeneous 2d point
  • F: fundamental matrix

Returns

The computed Sampson distance.