From: Alexander Shishkov Date: Sun, 4 Mar 2012 22:22:30 +0000 (+0000) Subject: fixed #1477 X-Git-Tag: accepted/2.0/20130307.220821~1210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c10bd5b7975d46bce587ff5916eee2be42c59cb;p=profile%2Fivi%2Fopencv.git fixed #1477 --- diff --git a/modules/core/doc/operations_on_arrays.rst b/modules/core/doc/operations_on_arrays.rst index 4360e89..fcd8994 100644 --- a/modules/core/doc/operations_on_arrays.rst +++ b/modules/core/doc/operations_on_arrays.rst @@ -1649,7 +1649,7 @@ The function ``meanStdDev`` computes the mean and the standard deviation ``M`` o .. math:: - \begin{array}{l} N = \sum _{I, \texttt{mask} (I) \ne 0} 1 \\ \texttt{mean} _c = \frac{\sum_{ I: \; \texttt{mask}(I) \ne 0} \texttt{src} (I)_c}{N} \\ \texttt{stddev} _c = \sqrt{\sum_{ I: \; \texttt{mask}(I) \ne 0} \left ( \texttt{src} (I)_c - \texttt{mean} _c \right )^2} \end{array} + \begin{array}{l} N = \sum _{I, \texttt{mask} (I) \ne 0} 1 \\ \texttt{mean} _c = \frac{\sum_{ I: \; \texttt{mask}(I) \ne 0} \texttt{src} (I)_c}{N} \\ \texttt{stddev} _c = \sqrt{\frac{\sum_{ I: \; \texttt{mask}(I) \ne 0} \left ( \texttt{src} (I)_c - \texttt{mean} _c \right )^2}{N}} \end{array} When all the mask elements are 0's, the functions return ``mean=stddev=Scalar::all(0)`` .