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

This commit is contained in:
Vladislav Vinogradov 2011-09-22 06:43:52 +00:00
parent 78bbefec98
commit ce35a6d8be

View File

@ -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;