Features2DToolboxGetHomographyMatrixFromMatchedFeatures Method |
http://www.emgu.com
Recover the homography matrix using RANDSAC. If the matrix cannot be recovered, null is returned.
Namespace:
Emgu.CV.Features2D
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.0.3408 (4.1.0.3408)
Syntaxpublic static Mat GetHomographyMatrixFromMatchedFeatures(
VectorOfKeyPoint model,
VectorOfKeyPoint observed,
VectorOfVectorOfDMatch matches,
Mat mask,
double ransacReprojThreshold
)
Public Shared Function GetHomographyMatrixFromMatchedFeatures (
model As VectorOfKeyPoint,
observed As VectorOfKeyPoint,
matches As VectorOfVectorOfDMatch,
mask As Mat,
ransacReprojThreshold As Double
) As Mat
public:
static Mat^ GetHomographyMatrixFromMatchedFeatures(
VectorOfKeyPoint^ model,
VectorOfKeyPoint^ observed,
VectorOfVectorOfDMatch^ matches,
Mat^ mask,
double ransacReprojThreshold
)
static member GetHomographyMatrixFromMatchedFeatures :
model : VectorOfKeyPoint *
observed : VectorOfKeyPoint *
matches : VectorOfVectorOfDMatch *
mask : Mat *
ransacReprojThreshold : float -> Mat
Parameters
- model
- Type: Emgu.CV.UtilVectorOfKeyPoint
The model keypoints - observed
- Type: Emgu.CV.UtilVectorOfKeyPoint
The observed keypoints - matches
- Type: Emgu.CV.UtilVectorOfVectorOfDMatch
Matches. Each matches[i] is k or less matches for the same query descriptor. - mask
- Type: Emgu.CVMat
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.
- ransacReprojThreshold
- Type: SystemDouble
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:
MatThe homography matrix, if it cannot be found, null is returned
See Also