| Cv2FindHomography Method (InputArray, InputArray, HomographyMethods, Double, OutputArray) |
computes the best-fit perspective transformation mapping srcPoints to dstPoints.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Mat FindHomography(
InputArray srcPoints,
InputArray dstPoints,
HomographyMethods method = HomographyMethods.None,
double ransacReprojThreshold = 3,
OutputArray mask = null
)
Public Shared Function FindHomography (
srcPoints As InputArray,
dstPoints As InputArray,
Optional method As HomographyMethods = HomographyMethods.None,
Optional ransacReprojThreshold As Double = 3,
Optional mask As OutputArray = Nothing
) As Mat
public:
static Mat^ FindHomography(
InputArray^ srcPoints,
InputArray^ dstPoints,
HomographyMethods method = HomographyMethods::None,
double ransacReprojThreshold = 3,
OutputArray^ mask = nullptr
)
static member FindHomography :
srcPoints : InputArray *
dstPoints : InputArray *
?method : HomographyMethods *
?ransacReprojThreshold : float *
?mask : OutputArray
(* Defaults:
let _method = defaultArg method HomographyMethods.None
let _ransacReprojThreshold = defaultArg ransacReprojThreshold 3
let _mask = defaultArg mask null
*)
-> Mat
Parameters
- srcPoints
- Type: OpenCvSharpInputArray
Coordinates of the points in the original plane, a matrix of the type CV_32FC2 - dstPoints
- Type: OpenCvSharpInputArray
Coordinates of the points in the target plane, a matrix of the type CV_32FC2 - method (Optional)
- Type: OpenCvSharpHomographyMethods
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: OpenCvSharpOutputArray
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.Cv2.FindHomography(OpenCvSharp.InputArray,OpenCvSharp.InputArray,OpenCvSharp.HomographyMethods,System.Double,OpenCvSharp.OutputArray)"]
See Also