Calculates a fundamental matrix from the corresponding points in two images.
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Mat FindFundamentalMat( InputArray points1, InputArray points2, FundamentalMatMethod method = FundamentalMatMethod.RansacOnly, double param1 = 3, double param2 = 0.99, OutputArray mask = null )
Parameters
- points1
- Type: OpenCvSharp.CPlusPlusInputArray
Array of N points from the first image. The point coordinates should be floating-point (single or double precision). - points2
- Type: OpenCvSharp.CPlusPlusInputArray
Array of the second image points of the same size and format as points1 . - method (Optional)
- Type: OpenCvSharpFundamentalMatMethod
Method for computing a fundamental matrix. - param1 (Optional)
- Type: SystemDouble
Parameter used for RANSAC. It is the maximum distance from a point to an epipolar line in pixels, beyond which the point is considered an outlier and is not used for computing the final fundamental matrix. It can be set to something like 1-3, depending on the accuracy of the point localization, image resolution, and the image noise. - param2 (Optional)
- Type: SystemDouble
Parameter used for the RANSAC or LMedS methods only. It specifies a desirable level of confidence (probability) that the estimated matrix is correct. - mask (Optional)
- Type: OpenCvSharp.CPlusPlusOutputArray
Output array of N elements, every element of which is set to 0 for outliers and to 1 for the other points. The array is computed only in the RANSAC and LMedS methods. For other methods, it is set to all 1’s.
Return Value
Type: Matfundamental matrix
See Also