When I tried to imread an simple gray scale image I drew in paint.net, the gray scale of the image data was totally off -- the background changed from origianl white (255) to some random gray value (55).

댓글 수: 1

Image Analyst
Image Analyst 2020년 3월 27일
Unfortunately you forgot to attach your image with the paper clip icon. I'll check back tomorrow.

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2020년 3월 27일

1 개 추천

The image file is not RGB, it is an colormapped image.
[img,cmap] = imread('image.png');
RGB = ind2rgb(img,cmap);
imshow(RGB)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2020년 3월 26일

답변:

2020년 3월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by