pub fn sampson_distance(
pt1: &impl ToInputArray,
pt2: &impl ToInputArray,
f: &impl ToInputArray,
) -> Result<f64>Expand description
Calculates the Sampson Distance between two points.
The function cv::sampsonDistance calculates and returns the first order approximation of the geometric error as:
The fundamental matrix may be calculated using the find_fundamental_mat 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.