Use the specific method to find perspective transformation H=||h_ij|| between the source and the destination planes

C# | Visual Basic | Visual C++ |
public static Matrix<float> FindHomography( Matrix<float> srcPoints, Matrix<float> dstPoints, HOMOGRAPHY_METHOD method, double ransacReprojThreshold )

- srcPoints (Matrix<(Of <(Single>)>))
- Point coordinates in the original plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogenious coordinates), where N is the number of points
- dstPoints (Matrix<(Of <(Single>)>))
- Point coordinates in the destination plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogenious coordinates)
- method (HOMOGRAPHY_METHOD)
- FindHomography method
- ransacReprojThreshold (Double)
- The maximum allowed reprojection error to treat a point pair as an inlier. The parameter is only used in RANSAC-based homography estimation. E.g. if dst_points coordinates are measured in pixels with pixel-accurate precision, it makes sense to set this parameter somewhere in the range ~1..3

The 3x3 homography matrix.