Fixed accumulateWeighted with mask for multichannel matrices #1959

This commit is contained in:
Andrey Kamaev 2012-05-18 06:08:14 +00:00
parent 4a3141accf
commit 639bf3ee8f

View File

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