title: Problems with meanStdDev OpenCV
body: <p>I am trying to write a thresholding function that would take as parameter my Threshold function. for that I need to use meanStdDev. </p>
  
  <pre><code>Mat structElem = dst(Range(i - radius, i + radius), Range(j - radius, j + radius));
  
                                      meanStdDev(structElem, mean, stdev);
  
                                      double threshValue = mean[0] * stdMean[0] + stdMean[1] * stdev[0] + stdMean[2]);
  </code></pre>
  
  <p>here mean and stdev are scalars while stdMean is an array that I use for getting the Thresh value. The funny thing is that when I try to do the same with 8Bit images everything works.</p>