Fixed comparison methods in matchShapes (issue #1012)
This commit is contained in:
parent
00de4b9314
commit
ed8e4b5bcc
@ -632,7 +632,7 @@ Compares two shapes.
|
||||
|
||||
:param object2: Second contour or grayscale image.
|
||||
|
||||
:param method: Comparison method: ``CV_CONTOUR_MATCH_I1`` , \ ``CV_CONTOURS_MATCH_I2`` \
|
||||
:param method: Comparison method: ``CV_CONTOURS_MATCH_I1`` , \ ``CV_CONTOURS_MATCH_I2`` \
|
||||
or ``CV_CONTOURS_MATCH_I3`` (see the details below).
|
||||
|
||||
:param parameter: Method-specific parameter (not supported now).
|
||||
@ -641,19 +641,19 @@ The function compares two shapes. All three implemented methods use the Hu invar
|
||||
:ocv:func:`HuMoments` ) as follows (
|
||||
:math:`A` denotes ``object1``,:math:`B` denotes ``object2`` ):
|
||||
|
||||
* method=CV\_CONTOUR\_MATCH\_I1
|
||||
* method=CV\_CONTOURS\_MATCH\_I1
|
||||
|
||||
.. math::
|
||||
|
||||
I_1(A,B) = \sum _{i=1...7} \left | \frac{1}{m^A_i} - \frac{1}{m^B_i} \right |
|
||||
|
||||
* method=CV\_CONTOUR\_MATCH\_I2
|
||||
* method=CV\_CONTOURS\_MATCH\_I2
|
||||
|
||||
.. math::
|
||||
|
||||
I_2(A,B) = \sum _{i=1...7} \left | m^A_i - m^B_i \right |
|
||||
|
||||
* method=CV\_CONTOUR\_MATCH\_I3
|
||||
* method=CV\_CONTOURS\_MATCH\_I3
|
||||
|
||||
.. math::
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user