mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
fixed bug in cv::reduce in reduceC_ for multi-channels source
This commit is contained in:
parent
78bbefec98
commit
ce35a6d8be
@ -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…
Reference in New Issue
Block a user