CvInvokeFindFundamentalMat Method |
http://www.emgu.com
Calculates fundamental matrix using one of four methods listed above and returns the number of fundamental matrices found (1 or 3) and 0, if no matrix is found.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static Mat FindFundamentalMat(
IInputArray points1,
IInputArray points2,
FmType method = FmType.Ransac,
double param1 = 3,
double param2 = 0.99,
IOutputArray mask = null
)
Public Shared Function FindFundamentalMat (
points1 As IInputArray,
points2 As IInputArray,
Optional method As FmType = FmType.Ransac,
Optional param1 As Double = 3,
Optional param2 As Double = 0.99,
Optional mask As IOutputArray = Nothing
) As Mat
public:
static Mat^ FindFundamentalMat(
IInputArray^ points1,
IInputArray^ points2,
FmType method = FmType::Ransac,
double param1 = 3,
double param2 = 0.99,
IOutputArray^ mask = nullptr
)
static member FindFundamentalMat :
points1 : IInputArray *
points2 : IInputArray *
?method : FmType *
?param1 : float *
?param2 : float *
?mask : IOutputArray
(* Defaults:
let _method = defaultArg method FmType.Ransac
let _param1 = defaultArg param1 3
let _param2 = defaultArg param2 0.99
let _mask = defaultArg mask null
*)
-> Mat
Parameters
- points1
- Type: Emgu.CVIInputArray
Array of N points from the first image. The point coordinates should be floating-point (single or double precision). - points2
- Type: Emgu.CVIInputArray
Array of the second image points of the same size and format as points1 - method (Optional)
- Type: Emgu.CV.CvEnumFmType
Method for computing the 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: Emgu.CVIOutputArray
The optional pointer to output array of N elements, every element of which is set to 0 for outliers and to 1 for the "inliers", i.e. points that comply well with the estimated epipolar geometry. The array is computed only in RANSAC and LMedS methods. For other methods it is set to all 1.
Return Value
Type:
MatThe calculated fundamental matrix
See Also