fix bg subtract, add extra mode to magic mirror, fix snap bg, added special mode to magic mirror that depends on bg subtraction

This commit is contained in:
c0ntrol
2016-03-20 19:36:11 +01:00
parent b38f8e84c4
commit 1e62476374
13 changed files with 378 additions and 224 deletions

View File

@@ -1490,7 +1490,11 @@ void vje_diff_plane( uint8_t *A, uint8_t *B, uint8_t *O, int threshold, int len
{
unsigned int i;
for( i = 0; i < len; i ++ ) {
O[i] = ( abs( B[i] - A[i] ) > threshold ? 0xff : 0 );
O[i] = abs( A[i] - B[i] );
if( O[i] < threshold )
O[i] = 0;
else
O[i] = 0xff;
}
}