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…
x
Reference in New Issue
Block a user