Commit ce35a6d8 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed bug in cv::reduce in reduceC_ for multi-channels source

parent 78bbefec
......@@ -1845,7 +1845,7 @@ reduceC_( const Mat& srcmat, Mat& dstmat )
for( ; i < size.width; i += cn )
{
a0 = op(a0, (WT)src[i]);
a0 = op(a0, (WT)src[i+k]);
}
a0 = op(a0, a1);
dst[k] = (ST)a0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment