http://www.emgu.com
Finds perspective transformation H=||hij|| between the source and the destination planes

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public static bool cvFindHomography(
	IntPtr srcPoints,
	IntPtr dstPoints,
	IntPtr homography,
	HOMOGRAPHY_METHOD method,
	double ransacReprojThreshold,
	IntPtr mask
)
Visual Basic
Public Shared Function cvFindHomography ( 
	srcPoints As IntPtr,
	dstPoints As IntPtr,
	homography As IntPtr,
	method As HOMOGRAPHY_METHOD,
	ransacReprojThreshold As Double,
	mask As IntPtr
) As Boolean
Visual C++
public:
static bool cvFindHomography(
	IntPtr srcPoints, 
	IntPtr dstPoints, 
	IntPtr homography, 
	HOMOGRAPHY_METHOD method, 
	double ransacReprojThreshold, 
	IntPtr mask
)
F#
static member cvFindHomography : 
        srcPoints : IntPtr * 
        dstPoints : IntPtr * 
        homography : IntPtr * 
        method : HOMOGRAPHY_METHOD * 
        ransacReprojThreshold : float * 
        mask : IntPtr -> bool 

Parameters

srcPoints
Type: System..::..IntPtr
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: System..::..IntPtr
Point coordinates in the destination plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogeneous coordinates)
homography
Type: System..::..IntPtr
Output 3x3 homography matrix. Homography matrix is determined up to a scale, thus it is normalized to make h33=1
method
Type: Emgu.CV.CvEnum..::..HOMOGRAPHY_METHOD
The type of the method
ransacReprojThreshold
Type: System..::..Double
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
Type: System..::..IntPtr
The optional output mask set by a robust method (RANSAC or LMEDS).

Return Value

Type: Boolean
True if the homography matrix is found, false otherwise.

See Also