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

pull/13383/head
Vladislav Vinogradov 14 years ago
parent 78bbefec98
commit ce35a6d8be
  1. 2
      modules/core/src/matrix.cpp

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

Loading…
Cancel
Save