Fixed accumulateWeighted with mask for multichannel matrices #1959
This commit is contained in:
parent
4a3141accf
commit
639bf3ee8f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user