|
|
|
@ -839,11 +839,11 @@ findHomography |
|
|
|
|
------------------ |
|
|
|
|
Finds a perspective transformation between two planes. |
|
|
|
|
|
|
|
|
|
.. ocv:function:: Mat findHomography( InputArray srcPoints, InputArray dstPoints, int method=0, double ransacReprojThreshold=3, OutputArray mask=noArray() ) |
|
|
|
|
.. ocv:function:: Mat findHomography( InputArray srcPoints, InputArray dstPoints, int method=0, double ransacReprojThreshold=3, OutputArray mask=noArray(), const int maxIters = 2000, const double confidence = 0.995) |
|
|
|
|
|
|
|
|
|
.. ocv:pyfunction:: cv2.findHomography(srcPoints, dstPoints[, method[, ransacReprojThreshold[, mask]]]) -> retval, mask |
|
|
|
|
|
|
|
|
|
.. ocv:cfunction:: int cvFindHomography( const CvMat* src_points, const CvMat* dst_points, CvMat* homography, int method=0, double ransacReprojThreshold=3, CvMat* mask=0 ) |
|
|
|
|
.. ocv:cfunction:: int cvFindHomography( const CvMat* src_points, const CvMat* dst_points, CvMat* homography, int method=0, double ransacReprojThreshold=3, CvMat* mask=0, int maxIters = 2000, double confidence = 0.995) |
|
|
|
|
|
|
|
|
|
:param srcPoints: Coordinates of the points in the original plane, a matrix of the type ``CV_32FC2`` or ``vector<Point2f>`` . |
|
|
|
|
|
|
|
|
@ -867,6 +867,10 @@ Finds a perspective transformation between two planes. |
|
|
|
|
|
|
|
|
|
:param mask: Optional output mask set by a robust method ( ``RANSAC`` or ``LMEDS`` ). Note that the input mask values are ignored. |
|
|
|
|
|
|
|
|
|
:param maxIters: The maximum number of RANSAC iterations, 2000 is the maximum it can be. |
|
|
|
|
|
|
|
|
|
:param confidence: Confidence level, between 0 and 1. |
|
|
|
|
|
|
|
|
|
The functions find and return the perspective transformation :math:`H` between the source and the destination planes: |
|
|
|
|
|
|
|
|
|
.. math:: |
|
|
|
|