Read 8 bit - colour as 24 bit colour

조회 수: 4 (최근 30일)
Jonasz
Jonasz 2013년 6월 6일
Hello I know it might be stupid question but it's a serious problem. I performed a quantization in IrfanView program and I would like to read the image in Matlab but the quantization change the bits from 24 to 8 ( 256 colour quantization). Matlab read this image as monochromatic with no RGB palletes. How can I read such an image in Matlab . Thanks.

답변 (1개)

Image Analyst
Image Analyst 2013년 6월 6일
Did you try to extract the palette with imread?
[indexedImage, colorMap] = imread(fullFileName);

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by