Why my colour image cannot display when using imread and imshow?

8 visualizaciones (últimos 30 días)
I= imread ('pineapple.png');
imshow(I)
I am using this code. When I run the code, it display the grayscale image. Why the normal image not display?

Respuesta aceptada

Kevin Holly
Kevin Holly el 8 de Nov. de 2021
Try this:
[I,cmap]=imread('pineapple.png');
imshow(I,'colormap',cmap)

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by