CvInvokeFindHomography Method (PointF, PointF, IOutputArray, HomographyMethod, Double, IOutputArray) |
http://www.emgu.com
Finds perspective transformation H=||h_ij|| between the source and the destination planes
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic static void FindHomography(
PointF[] srcPoints,
PointF[] dstPoints,
IOutputArray homography,
HomographyMethod method,
double ransacReprojThreshold = 3,
IOutputArray mask = null
)
Public Shared Sub FindHomography (
srcPoints As PointF(),
dstPoints As PointF(),
homography As IOutputArray,
method As HomographyMethod,
Optional ransacReprojThreshold As Double = 3,
Optional mask As IOutputArray = Nothing
)
public:
static void FindHomography(
array<PointF>^ srcPoints,
array<PointF>^ dstPoints,
IOutputArray^ homography,
HomographyMethod method,
double ransacReprojThreshold = 3,
IOutputArray^ mask = nullptr
)
static member FindHomography :
srcPoints : PointF[] *
dstPoints : PointF[] *
homography : IOutputArray *
method : HomographyMethod *
?ransacReprojThreshold : float *
?mask : IOutputArray
(* Defaults:
let _ransacReprojThreshold = defaultArg ransacReprojThreshold 3
let _mask = defaultArg mask null
*)
-> unit
Parameters
- srcPoints
- Type: System.DrawingPointF
Point coordinates in the original plane - dstPoints
- Type: System.DrawingPointF
Point coordinates in the destination plane - homography
- Type: Emgu.CVIOutputArray
The output homography matrix - method
- Type: Emgu.CV.CvEnumHomographyMethod
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:
The 3x3 homography matrix if found. Null if not found.
See Also