Commit 639bf3ee authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed accumulateWeighted with mask for multichannel matrices #1959

parent 4a3141ac
...@@ -272,7 +272,7 @@ accW_( const T* src, AT* dst, const uchar* mask, int len, int cn, double alpha ) ...@@ -272,7 +272,7 @@ accW_( const T* src, AT* dst, const uchar* mask, int len, int cn, double alpha )
if( mask[i] ) if( mask[i] )
{ {
for( int k = 0; k < cn; k++ ) for( int k = 0; k < cn; k++ )
dst[k] += src[k]*a + dst[k]*b; dst[k] = src[k]*a + dst[k]*b;
} }
} }
} }
......
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