Skip to content

Commit 660d7cd

Browse files
committed
Updated findHomography docs branch 2.4
Updated the documents to give warning to the users of `findHomography` that the function may return an empty matrix in some cases. The user must take care of checking that.
1 parent 2b2ce3f commit 660d7cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/calib3d/doc/camera_calibration_and_3d_reconstruction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ is minimized. If the parameter ``method`` is set to the default value 0, the fun
746746
uses all the point pairs to compute an initial homography estimate with a simple least-squares scheme.
747747

748748
However, if not all of the point pairs (
749-
:math:`srcPoints_i`,:math:`dstPoints_i` ) fit the rigid perspective transformation (that is, there
749+
:math:`srcPoints_i`, :math:`dstPoints_i` ) fit the rigid perspective transformation (that is, there
750750
are some outliers), this initial estimate will be poor.
751751
In this case, you can use one of the two robust methods. Both methods, ``RANSAC`` and ``LMeDS`` , try many different random subsets
752752
of the corresponding point pairs (of four pairs each), estimate
@@ -769,7 +769,7 @@ if there are no outliers and the noise is rather small, use the default method (
769769

770770
The function is used to find initial intrinsic and extrinsic matrices.
771771
Homography matrix is determined up to a scale. Thus, it is normalized so that
772-
:math:`h_{33}=1` .
772+
:math:`h_{33}=1`. Note that whenever an H matrix cannot be estimated, an empty one will be returned.
773773

774774
.. seealso::
775775

0 commit comments

Comments
 (0)