Use the specific method to find perspective transformation H=||h_ij|| between the source and the destination planes
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
public static HomographyMatrix FindHomography( Matrix<float> srcPoints, Matrix<float> dstPoints, HOMOGRAPHY_METHOD method, double ransacReprojThreshold )
Public Shared Function FindHomography ( _ srcPoints As Matrix(Of Single), _ dstPoints As Matrix(Of Single), _ method As HOMOGRAPHY_METHOD, _ ransacReprojThreshold As Double _ ) As HomographyMatrix
public: static HomographyMatrix^ FindHomography( Matrix<float>^ srcPoints, Matrix<float>^ dstPoints, HOMOGRAPHY_METHOD method, double ransacReprojThreshold )
Parameters
- srcPoints
- Matrix<(Of <(<'Single>)>)>
Point coordinates in the original plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogeneous 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 homogeneous 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