trrohit26 / ehci

Automatically exported from code.google.com/p/ehci
0 stars 0 forks source link

Problem with Understanding How color is being keyed out? #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have used the background.tar code and done a RGB to YUV conversion

double Y=0.299 * cvGetAt(display,i,j).val[0] + 0.587 + 0.114;
double U=0.492 * cvGetAt(display,i,j).val[1] + 0.114 - 1.000;
double V=0.877 * cvGetAt(display,i,j).val[2] + 0.299 - 1.000;

        if(( Y > Value1 ) && 
                   ( U > Value2 ) && 
                   ( V < Value3 )){         
        putpixel(person, j, i, 0x00FF00FF);
                }

this keys out blue color perfectly ... but i dont seem to understand how ur 
code works ? how does the code in background.tar know which color to remove ?
Thank You

Original issue reported on code.google.com by qad3...@gmail.com on 5 Dec 2010 at 11:04