Fixed accumulateWeighted with mask for multichannel matrices #1959

pull/2/head
Andrey Kamaev 13 years ago
parent 4a3141accf
commit 639bf3ee8f
  1. 2
      modules/imgproc/src/accum.cpp

@ -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…
Cancel
Save