Quantizing colour planes using 4-bits
Mostrar comentarios más antiguos
Hi,
First, I want to mention that I'm not in an attempt of doing a homework from my question here :-)
If I was required to *quantize* the colour planes of an image using 4-bits:
- What does this statement mean?
- How can I perform this in matlab?
Thanks.
Respuestas (2)
Image Analyst
el 11 de Oct. de 2012
0 votos
7 comentarios
med-sweng
el 11 de Oct. de 2012
Image Analyst
el 11 de Oct. de 2012
One way (not necessarily the best) is to just divide each color plane by 16. Of course it's still taking up 8 bits if you keep it in a uint8 variable. There are no 4 bit variables so you'll have to pack them together somehow if you really want 4 bits on disk.
med-sweng
el 11 de Oct. de 2012
Image Analyst
el 11 de Oct. de 2012
I can use that function with no problem. What does this say?
>> which imquantize
I think you don't have it. You have an old version probably.
Walter Roberson
el 11 de Oct. de 2012
Or you might not have that toolbox.
Image Analyst
el 11 de Oct. de 2012
Editada: Image Analyst
el 11 de Oct. de 2012
Type ver on the command line to find out what toolboxes you have installed. Tell us what it says (you don't need to tell us your license number though).
Walter Roberson
el 11 de Oct. de 2012
Note: "ver" tells what is installed, not what is licensed.
Elad
el 6 de Jul. de 2013
0 votos
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!