Finds perspective transformation H=||h_ij|| between the source and the destination planes
| C# | Visual Basic | Visual C++ |
public static Matrix<double> FindHomography( PointF[] srcPoints, PointF[] dstPoints, HOMOGRAPHY_METHOD method, double ransacReprojThreshold )
- srcPoints (array< PointF >[]()[])
- Point coordinates in the original plane
- dstPoints (array< PointF >[]()[])
- Point coordinates in the destination plane
- 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.