From b4498d1d484811c183da73c2900d0a3e06c1a02f Mon Sep 17 00:00:00 2001 From: vbystricky Date: Mon, 26 May 2014 16:55:31 +0400 Subject: [PATCH] Fix some errors --- modules/core/src/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/matrix.cpp b/modules/core/src/matrix.cpp index 86b63db054..70b22026ba 100644 --- a/modules/core/src/matrix.cpp +++ b/modules/core/src/matrix.cpp @@ -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; }