Why my colour image cannot display when using imread and imshow?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Atifah Samuri
el 8 de Nov. de 2021
Comentada: Atifah Samuri
el 9 de Nov. de 2021
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?
0 comentarios
Respuesta aceptada
Kevin Holly
el 8 de Nov. de 2021
Try this:
[I,cmap]=imread('pineapple.png');
imshow(I,'colormap',cmap)
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!