Commit 839c1bea authored by Ilya Lysenkov's avatar Ilya Lysenkov

Fixed matchTemplate doc (ticket #1045)

parent 99bae771
...@@ -104,7 +104,7 @@ image patch: ...@@ -104,7 +104,7 @@ image patch:
.. math:: .. 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: ...@@ -114,7 +114,7 @@ image patch:
.. math:: .. 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 where
......
...@@ -110,7 +110,7 @@ image patch: ...@@ -110,7 +110,7 @@ image patch:
.. math:: .. 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: ...@@ -120,7 +120,7 @@ image patch:
.. math:: .. 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 where
......
...@@ -23,7 +23,7 @@ The function slides through ``image`` , compares the ...@@ -23,7 +23,7 @@ The function slides through ``image`` , compares the
overlapped patches of size 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 :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 ( 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: image patch:
:math:`x' = 0...w-1, y' = 0...h-1` :math:`x' = 0...w-1, y' = 0...h-1`
* method=CV\_TM\_SQDIFF * method=CV\_TM\_SQDIFF
...@@ -48,13 +48,13 @@ image patch: ...@@ -48,13 +48,13 @@ image patch:
.. math:: .. 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 * method=CV\_TM\_CCOEFF
.. math:: .. 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 where
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment