Cv2FindHomography Method (IEnumerablePoint2d, IEnumerablePoint2d, HomographyMethod, Double, OutputArray) OpenCvSharp Class Library
computes the best-fit perspective transformation mapping srcPoints to dstPoints.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static Mat FindHomography(
	IEnumerable<Point2d> srcPoints,
	IEnumerable<Point2d> dstPoints,
	HomographyMethod method = HomographyMethod.Zero,
	double ransacReprojThreshold = 3,
	OutputArray mask = null
)

Parameters

srcPoints
Type: System.Collections.GenericIEnumerablePoint2d
Coordinates of the points in the original plane
dstPoints
Type: System.Collections.GenericIEnumerablePoint2d
Coordinates of the points in the target plane
method (Optional)
Type: OpenCvSharpHomographyMethod
Method used to computed a homography matrix.
ransacReprojThreshold (Optional)
Type: SystemDouble
Maximum allowed reprojection error to treat a point pair as an inlier (used in the RANSAC method only)
mask (Optional)
Type: OpenCvSharp.CPlusPlusOutputArray
Optional output mask set by a robust method ( CV_RANSAC or CV_LMEDS ). Note that the input mask values are ignored.

Return Value

Type: Mat

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.FindHomography(System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d},System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d},OpenCvSharp.HomographyMethod,System.Double,OpenCvSharp.CPlusPlus.OutputArray)"]

See Also

Reference