Working with YCrCb
Posted: 2008-06-25T14:56:39-07:00
I need to look at (and alter) the Y, Cr, and Cb values for a given pixel. The only structure I see is PixelPacket with RGB as member variables.
In my code I load an image that is in RGB space and I then call... SetImageColorspace(my_image, YCbCrColorspace); ...to convert it.
I then tried to get the pixel info with this call... pixels=GetImagePixels(my_image,0,loop,my_image->columns,1);
Is there a way to do this with ImageMagick calls?
~Drew
In my code I load an image that is in RGB space and I then call... SetImageColorspace(my_image, YCbCrColorspace); ...to convert it.
I then tried to get the pixel info with this call... pixels=GetImagePixels(my_image,0,loop,my_image->columns,1);
Is there a way to do this with ImageMagick calls?
~Drew