fixed #1477
This commit is contained in:
parent
e64450ae89
commit
5c10bd5b79
@ -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)`` .
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user