Re: bit representation of pixel values of an image
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Wed, 30 Apr 2008 18:28:19 +0000 (UTC)
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
.
- References:
- Prev by Date: Re: Help with string operation
- Next by Date: Re: fft sign?
- Previous by thread: bit representation of pixel values of an image
- Next by thread: How to solve simple sqrt() ??
- Index(es):