Fix some errors
authorvbystricky <user@user-pc.(none)>
Mon, 26 May 2014 12:55:31 +0000 (16:55 +0400)
committervbystricky <user@user-pc.(none)>
Mon, 26 May 2014 12:55:31 +0000 (16:55 +0400)
modules/core/src/matrix.cpp

index 86b63db..70b2202 100644 (file)
@@ -3471,7 +3471,7 @@ static bool ocl_reduce(InputArray _src, OutputArray _dst,
             return false;
 
         if (op0 == CV_REDUCE_AVG)
-            temp.convertTo(dst, ddepth0, 1. / (dim == 0 ? src.rows : src.cols));
+            temp.convertTo(dst, ddepth0, 1. / src.cols);
 
         return true;
     }