From 839c1bea4b8b4aba800fce22ab669b287c386bb0 Mon Sep 17 00:00:00 2001 From: Ilya Lysenkov Date: Wed, 8 Jun 2011 15:37:49 +0000 Subject: [PATCH] Fixed matchTemplate doc (ticket #1045) --- doc/opencv1/c/imgproc_object_detection.rst | 4 ++-- doc/opencv1/py/imgproc_object_detection.rst | 4 ++-- modules/imgproc/doc/object_detection.rst | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/opencv1/c/imgproc_object_detection.rst b/doc/opencv1/c/imgproc_object_detection.rst index d934f0f..e05f854 100644 --- a/doc/opencv1/c/imgproc_object_detection.rst +++ b/doc/opencv1/c/imgproc_object_detection.rst @@ -104,7 +104,7 @@ image patch: .. math:: - R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I'(x+x',y+y'))}{\sqrt{\sum_{x',y'}T(x',y')^2 \cdot \sum_{x',y'} I(x+x',y+y')^2}} + R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I(x+x',y+y'))}{\sqrt{\sum_{x',y'}T(x',y')^2 \cdot \sum_{x',y'} I(x+x',y+y')^2}} @@ -114,7 +114,7 @@ image patch: .. math:: - R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I(x+x',y+y')) + R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) where diff --git a/doc/opencv1/py/imgproc_object_detection.rst b/doc/opencv1/py/imgproc_object_detection.rst index aa87485..bd7e557 100644 --- a/doc/opencv1/py/imgproc_object_detection.rst +++ b/doc/opencv1/py/imgproc_object_detection.rst @@ -110,7 +110,7 @@ image patch: .. math:: - R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I'(x+x',y+y'))}{\sqrt{\sum_{x',y'}T(x',y')^2 \cdot \sum_{x',y'} I(x+x',y+y')^2}} + R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I(x+x',y+y'))}{\sqrt{\sum_{x',y'}T(x',y')^2 \cdot \sum_{x',y'} I(x+x',y+y')^2}} @@ -120,7 +120,7 @@ image patch: .. math:: - R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I(x+x',y+y')) + R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) where diff --git a/modules/imgproc/doc/object_detection.rst b/modules/imgproc/doc/object_detection.rst index cb22ea0..b6f85db 100644 --- a/modules/imgproc/doc/object_detection.rst +++ b/modules/imgproc/doc/object_detection.rst @@ -23,7 +23,7 @@ The function slides through ``image`` , compares the overlapped patches of size :math:`w \times h` against ``templ`` using the specified method and stores the comparison results in ``result`` . Here are the formulae for the available comparison methods ( -:math:`I` denotes ``image``,:math:`T` ``template``,:math:`R` ``result`` ). The summation is done over template and/or the +:math:`I` denotes ``image``, :math:`T` ``template``, :math:`R` ``result`` ). The summation is done over template and/or the image patch: :math:`x' = 0...w-1, y' = 0...h-1` * method=CV\_TM\_SQDIFF @@ -48,13 +48,13 @@ image patch: .. math:: - R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I'(x+x',y+y'))}{\sqrt{\sum_{x',y'}T(x',y')^2 \cdot \sum_{x',y'} I(x+x',y+y')^2}} + R(x,y)= \frac{\sum_{x',y'} (T(x',y') \cdot I(x+x',y+y'))}{\sqrt{\sum_{x',y'}T(x',y')^2 \cdot \sum_{x',y'} I(x+x',y+y')^2}} * method=CV\_TM\_CCOEFF .. math:: - R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I(x+x',y+y')) + R(x,y)= \sum _{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) where -- 2.7.4