Problem with reading colorful images with png format

1 回表示 (過去 30 日間)
Memo Remo
Memo Remo 2021 年 7 月 15 日
コメント済み: Memo Remo 2021 年 7 月 15 日
Hi,
When I read the attached image in MATLAB using its imread function, the image is automatically converted to a grayscale image. Please let me know how I can fix this. Many thanks in advance.

採用された回答

KSSV
KSSV 2021 年 7 月 15 日
編集済み: KSSV 2021 年 7 月 15 日
Note thar your image is already a gray scale image, it is not RGB image. If you are expecting to show up the same in MATLAB try:
[I,cmap] = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/685098/File.png') ;
imshow(I,cmap)
  1 件のコメント
Memo Remo
Memo Remo 2021 年 7 月 15 日
Thanks for your help. Much appreciated.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by