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

8 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品


版本

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by