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