CvInvokeFindHomography Method (IInputArray, IInputArray, RobustEstimationAlgorithm, Double, IOutputArray) |
http://www.emgu.com
Finds perspective transformation H=||hij|| between the source and the destination planes
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static Mat FindHomography(
IInputArray srcPoints,
IInputArray dstPoints,
RobustEstimationAlgorithm method = RobustEstimationAlgorithm.AllPoints,
double ransacReprojThreshold = 3,
IOutputArray mask = null
)
Public Shared Function FindHomography (
srcPoints As IInputArray,
dstPoints As IInputArray,
Optional method As RobustEstimationAlgorithm = RobustEstimationAlgorithm.AllPoints,
Optional ransacReprojThreshold As Double = 3,
Optional mask As IOutputArray = Nothing
) As Mat
public:
static Mat^ FindHomography(
IInputArray^ srcPoints,
IInputArray^ dstPoints,
RobustEstimationAlgorithm method = RobustEstimationAlgorithm::AllPoints,
double ransacReprojThreshold = 3,
IOutputArray^ mask = nullptr
)
static member FindHomography :
srcPoints : IInputArray *
dstPoints : IInputArray *
?method : RobustEstimationAlgorithm *
?ransacReprojThreshold : float *
?mask : IOutputArray
(* Defaults:
let _method = defaultArg method RobustEstimationAlgorithm.AllPoints
let _ransacReprojThreshold = defaultArg ransacReprojThreshold 3
let _mask = defaultArg mask null
*)
-> Mat
Parameters
- srcPoints
- Type: Emgu.CVIInputArray
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
- Type: Emgu.CVIInputArray
Point coordinates in the destination plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogeneous coordinates) - method (Optional)
- Type: Emgu.CV.CvEnumRobustEstimationAlgorithm
The type of the method - ransacReprojThreshold (Optional)
- Type: SystemDouble
The maximum allowed re-projection 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 - mask (Optional)
- Type: Emgu.CVIOutputArray
The optional output mask set by a robust method (RANSAC or LMEDS).
Return Value
Type:
MatOutput 3x3 homography matrix. Homography matrix is determined up to a scale, thus it is normalized to make h33=1
See Also