Hi
I am working on skin detection on DM6437. I am getting CbCr component on my displayed image by using the code given below:-
void process_imagebw( void* currentFrame, int yRows, int xPixels)
{
int xx = 0;
for( xx = 1; xx < (yRows * xPixels)*2; xx+=2 )
{
*( ( (unsigned char*)currentFrame ) + xx ) = 0x00;
}
I am not able to figure out about how can I set Cb component to 0 for red skin detection as Cb is blue component. If I am using Wiki example http://wiki.davincidsp.com/index.php?title=Accessing_pixels_in_a_frame_on_DM643x
then the sequence of YcbCr is Cb Y Cr Y Cb Y Cr Y Cb Y.. So is it possible to set Cb component to 0 by this method or any alternative method..
Thanks in advance
Jalwinder Pingal