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
Original issue reported on code.google.com by
qad3...@gmail.com
on 5 Dec 2010 at 11:04