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 (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

# Syntax

C# |
---|

public static int cvFindFundamentalMat( IntPtr points1, IntPtr points2, IntPtr fundamentalMatrix, CV_FM method, double param1, double param2, IntPtr status ) |

Visual Basic |
---|

Public Shared Function cvFindFundamentalMat ( _ points1 As IntPtr, _ points2 As IntPtr, _ fundamentalMatrix As IntPtr, _ method As CV_FM, _ param1 As Double, _ param2 As Double, _ status As IntPtr _ ) As Integer |

Visual C++ |
---|

public: static int cvFindFundamentalMat( IntPtr points1, IntPtr points2, IntPtr fundamentalMatrix, CV_FM method, double param1, double param2, IntPtr status ) |

#### Parameters

- points1
- Type: System..::..IntPtr

Array of the first image points of 2xN, Nx2, 3xN or Nx3 size (where N is number of points). Multi-channel 1xN or Nx1 array is also acceptable. The point coordinates should be floating-point (single or double precision)

- points2
- Type: System..::..IntPtr

Array of the second image points of the same size and format as points1

- fundamentalMatrix
- Type: System..::..IntPtr

The output fundamental matrix or matrices. The size should be 3x3 or 9x3 (7-point method may return up to 3 matrices).

- method
- Type: Emgu.CV.CvEnum..::..CV_FM

Method for computing the fundamental matrix

- param1
- Type: System..::..Double

Use 3.0 for default. The parameter is used for RANSAC method only. It is the maximum distance from point to epipolar line in pixels, beyond which the point is considered an outlier and is not used for computing the final fundamental matrix. Usually it is set somewhere from 1 to 3.

- param2
- Type: System..::..Double

Use 0.99 for default. The parameter is used for RANSAC or LMedS methods only. It denotes the desirable level of confidence of the fundamental matrix estimate.

- status
- Type: System..::..IntPtr

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.