﻿CameraCalibration.FindHomography Method (Matrix(Single), Matrix(Single), HOMOGRAPHY_METHOD, Double)
http://www.emgu.com
Use the specific method to find perspective transformation H=||h_ij|| 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 HomographyMatrix FindHomography(
Matrix<float> srcPoints,
Matrix<float> dstPoints,
HOMOGRAPHY_METHOD method,
double ransacReprojThreshold
)```
Visual Basic
```Public Shared Function FindHomography (
srcPoints As Matrix(Of Single),
dstPoints As Matrix(Of Single),
method As HOMOGRAPHY_METHOD,
ransacReprojThreshold As Double
) As HomographyMatrix```
Visual C++
```public:
static HomographyMatrix^ FindHomography(
Matrix<float>^ srcPoints,
Matrix<float>^ dstPoints,
HOMOGRAPHY_METHOD method,
double ransacReprojThreshold
)```
F#
```static member FindHomography :
srcPoints : Matrix<float32> *
dstPoints : Matrix<float32> *
method : HOMOGRAPHY_METHOD *
ransacReprojThreshold : float -> HomographyMatrix
```

#### Parameters

srcPoints
Type: Emgu.CV..::..Matrix<(Of <(<'Single>)>)>
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.CV..::..Matrix<(Of <(<'Single>)>)>
Point coordinates in the destination plane, 2xN, Nx2, 3xN or Nx3 array (the latter two are for representation in homogeneous coordinates)
method
Type: Emgu.CV.CvEnum..::..HOMOGRAPHY_METHOD
FindHomography 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

#### Return Value

Type: HomographyMatrix