From e54868bc248e6385600ce758dd43f6164edc2c1e Mon Sep 17 00:00:00 2001 From: lbestrowden Date: Mon, 4 Mar 2013 23:09:28 -0500 Subject: [PATCH] Small correction in StatTransform --- sdk/plugins/reduce.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/plugins/reduce.cpp b/sdk/plugins/reduce.cpp index 6038e61..d63948d 100644 --- a/sdk/plugins/reduce.cpp +++ b/sdk/plugins/reduce.cpp @@ -107,11 +107,11 @@ private: if ((statistic == Min) || (statistic == Max)) { double min, max; minMaxLoc(src, &min, &max); - m.at(1, 1) = (statistic == Min ? min : max); + m.at(0,0) = (statistic == Min ? min : max); } else { Scalar mean, stddev; meanStdDev(src, mean, stddev); - m.at(1,1) = (statistic == Mean ? mean[0] : stddev[0]); + m.at(0,0) = (statistic == Mean ? mean[0] : stddev[0]); } dst = m; } -- libgit2 0.21.4