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

4 ビュー (過去 30 日間)
Atifah Samuri
Atifah Samuri 2021 年 11 月 8 日
コメント済み: Atifah Samuri 2021 年 11 月 9 日
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)
  1 件のコメント
Atifah Samuri
Atifah Samuri 2021 年 11 月 9 日
I can see my colour image displayed now. Thanks sir.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by