| Cv2FindFundamentalMat Method (IEnumerablePoint2d, IEnumerablePoint2d, FundamentalMatMethod, Double, Double, OutputArray) |
Calculates a fundamental matrix from the corresponding points in two images.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Mat FindFundamentalMat(
IEnumerable<Point2d> points1,
IEnumerable<Point2d> points2,
FundamentalMatMethod method = FundamentalMatMethod.Ransac,
double param1 = 3,
double param2 = 0.99,
OutputArray mask = null
)
Public Shared Function FindFundamentalMat (
points1 As IEnumerable(Of Point2d),
points2 As IEnumerable(Of Point2d),
Optional method As FundamentalMatMethod = FundamentalMatMethod.Ransac,
Optional param1 As Double = 3,
Optional param2 As Double = 0.99,
Optional mask As OutputArray = Nothing
) As Mat
public:
static Mat^ FindFundamentalMat(
IEnumerable<Point2d>^ points1,
IEnumerable<Point2d>^ points2,
FundamentalMatMethod method = FundamentalMatMethod::Ransac,
double param1 = 3,
double param2 = 0.99,
OutputArray^ mask = nullptr
)
static member FindFundamentalMat :
points1 : IEnumerable<Point2d> *
points2 : IEnumerable<Point2d> *
?method : FundamentalMatMethod *
?param1 : float *
?param2 : float *
?mask : OutputArray
(* Defaults:
let _method = defaultArg method FundamentalMatMethod.Ransac
let _param1 = defaultArg param1 3
let _param2 = defaultArg param2 0.99
let _mask = defaultArg mask null
*)
-> Mat
Parameters
- points1
- Type: System.Collections.GenericIEnumerablePoint2d
Array of N points from the first image.
The point coordinates should be floating-point (single or double precision). - points2
- Type: System.Collections.GenericIEnumerablePoint2d
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: OpenCvSharpOutputArray
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