Re: bit representation of pixel values of an image



In article <fv9art$kvk$1@xxxxxxxxxxxxxxxxxx>, Deo <spliers@xxxxxxxxxxx> wrote:
How can I get the 8 or 24 bit representation of pixel
values of an image?

dec2bin(image,8) or dec2bin(image,24)

but the result is going to be hard to interpret unless your image
is int8 or uint8, or int32 or uint32. In the case of 24 bits, you
need to know whether the data is stored in the first 24 of 32 bits,
or the last 24 of 32 bits -- I've seen both show up.
--
"There is nothing so bad but it can masquerade as moral."
-- Walter Lippmann
.