Commit e54868bc248e6385600ce758dd43f6164edc2c1e

Authored by lbestrowden
1 parent 3b7099e5

Small correction in StatTransform

Showing 1 changed file with 2 additions and 2 deletions
sdk/plugins/reduce.cpp
... ... @@ -107,11 +107,11 @@ private:
107 107 if ((statistic == Min) || (statistic == Max)) {
108 108 double min, max;
109 109 minMaxLoc(src, &min, &max);
110   - m.at<float>(1, 1) = (statistic == Min ? min : max);
  110 + m.at<float>(0,0) = (statistic == Min ? min : max);
111 111 } else {
112 112 Scalar mean, stddev;
113 113 meanStdDev(src, mean, stddev);
114   - m.at<float>(1,1) = (statistic == Mean ? mean[0] : stddev[0]);
  114 + m.at<float>(0,0) = (statistic == Mean ? mean[0] : stddev[0]);
115 115 }
116 116 dst = m;
117 117 }
... ...