Recover the homography matrix using RANDSAC. If the matrix cannot be recovered, null is returned.

Namespace: Emgu.CV.Features2D
Assembly: Emgu.CV (in Emgu.CV.dll) Version: (


public static HomographyMatrix GetHomographyMatrixFromMatchedFeatures(
	VectorOfKeyPoint model,
	VectorOfKeyPoint observed,
	Matrix<int> matchIndices,
	Matrix<byte> mask,
	double ransacReprojThreshold
Visual Basic
Public Shared Function GetHomographyMatrixFromMatchedFeatures ( 
	model As VectorOfKeyPoint,
	observed As VectorOfKeyPoint,
	matchIndices As Matrix(Of Integer),
	mask As Matrix(Of Byte),
	ransacReprojThreshold As Double
) As HomographyMatrix
Visual C++
static HomographyMatrix^ GetHomographyMatrixFromMatchedFeatures(
	VectorOfKeyPoint^ model, 
	VectorOfKeyPoint^ observed, 
	Matrix<int>^ matchIndices, 
	Matrix<unsigned char>^ mask, 
	double ransacReprojThreshold
static member GetHomographyMatrixFromMatchedFeatures : 
        model : VectorOfKeyPoint * 
        observed : VectorOfKeyPoint * 
        matchIndices : Matrix<int> * 
        mask : Matrix<byte> * 
        ransacReprojThreshold : float -> HomographyMatrix 


Type: Emgu.CV.Util..::..VectorOfKeyPoint
The model keypoints
Type: Emgu.CV.Util..::..VectorOfKeyPoint
The observed keypoints
Type: Emgu.CV..::..Matrix<(Of <(<'Int32>)>)>
The match indices
Type: Emgu.CV..::..Matrix<(Of <(<'Byte>)>)>
The mask matrix of which the value might be modified by the function. As input, if the value is 0, the corresponding match will be ignored when computing the homography matrix. If the value is 1 and RANSAC determine the match is an outlier, the value will be set to 0.
Type: System..::..Double
The maximum allowed reprojection error to treat a point pair as an inlier. If srcPoints and dstPoints are measured in pixels, it usually makes sense to set this parameter somewhere in the range 1 to 10.

Return Value

Type: HomographyMatrix
The homography matrix, if it cannot be found, null is returned

See Also