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

조회 수: 3 (최근 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)

추가 답변 (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