Page 1 of 1

magick++ 16 bit errors

Posted: 2007-06-27T01:56:01-07:00
by devendra
Hello all,

I am using 16 bit ImageMagick. I am using the Magick++ API to read images and get their pixel data to do some image processing.

Is there any way in which I can get 8 bit pixel data. I don't seem to find a method in Image or PixelPacket class to set depth and read 8 bit Pixel data.

Alternatively, I could use 8 bit ImageMagick, but then going forward, I want support for 10 bit.

Regards,
Devendra.

Re: magick++ 16 bit errors

Posted: 2007-06-27T01:57:53-07:00
by devendra
P.S. :

I tried reading the 16 bit values, right shifting them to 8 bits, again left shifting the bits by 8 and writing the file. This results in an error of 1 bit.

-Devendra.