From 47ee844df627377f30a0a1e58ccbffa4d819467b Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 24 Apr 2012 14:56:56 +0000 Subject: [PATCH] fixed formula in matchShapes, method=CV_CONTOUR_MATCH_I3 (ticket #1801) --- modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst b/modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst index d631281..f6284bf 100644 --- a/modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst +++ b/modules/imgproc/doc/structural_analysis_and_shape_descriptors.rst @@ -641,23 +641,23 @@ 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\_CONTOURS\_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\_CONTOURS\_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\_CONTOURS\_MATCH\_I3 +* method=CV_CONTOURS_MATCH_I3 .. math:: - I_3(A,B) = \sum _{i=1...7} \frac{ \left| m^A_i - m^B_i \right| }{ \left| m^A_i \right| } + I_3(A,B) = \max _{i=1...7} \frac{ \left| m^A_i - m^B_i \right| }{ \left| m^A_i \right| } where -- 2.7.4