CvInvokeFindHomography Method (PointF, PointF, RobustEstimationAlgorithm, Double, IOutputArray) |
http://www.emgu.com
Finds perspective transformation H=||h_ij|| 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(
PointF[] srcPoints,
PointF[] dstPoints,
RobustEstimationAlgorithm method = RobustEstimationAlgorithm.AllPoints,
double ransacReprojThreshold = 3,
IOutputArray mask = null
)
Public Shared Function FindHomography (
srcPoints As PointF(),
dstPoints As PointF(),
Optional method As RobustEstimationAlgorithm = RobustEstimationAlgorithm.AllPoints,
Optional ransacReprojThreshold As Double = 3,
Optional mask As IOutputArray = Nothing
) As Mat
public:
static Mat^ FindHomography(
array<PointF>^ srcPoints,
array<PointF>^ dstPoints,
RobustEstimationAlgorithm method = RobustEstimationAlgorithm::AllPoints,
double ransacReprojThreshold = 3,
IOutputArray^ mask = nullptr
)
static member FindHomography :
srcPoints : PointF[] *
dstPoints : PointF[] *
?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: System.DrawingPointF
Point coordinates in the original plane - dstPoints
- Type: System.DrawingPointF
Point coordinates in the destination plane - method (Optional)
- Type: Emgu.CV.CvEnumRobustEstimationAlgorithm
FindHomography method - ransacReprojThreshold (Optional)
- Type: SystemDouble
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
- mask (Optional)
- Type: Emgu.CVIOutputArray
Optional output mask set by a robust method ( CV_RANSAC or CV_LMEDS ). Note that the input mask values are ignored.
Return Value
Type:
MatThe 3x3 homography matrix if found. Null if not found.
See Also