필터 지우기
필터 지우기

Why do I see the 3-band image in a single band?

조회 수: 2 (최근 30일)
Merve YILDIRIM
Merve YILDIRIM 2020년 6월 30일
댓글: Merve YILDIRIM 2020년 6월 30일
I have an image(3 bands(RGB)). it is .png file.
a = imread('mervveee.png');
imshow(a)
My color image look like gray image. why?
how can I open colour image?

채택된 답변

SC
SC 2020년 6월 30일
I don't think that should happen. (It would be helpful if you could attach the .png file too)
Try the following, incase:
imdata = imread('mervveee.png');
RC = imdata(:,:,1);
GC = imdata(:,:,2);
BC = imdata(:,:,3);
im = cat(3,RC,GC,BC);
isequal(imdata,im)
imshow(im)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by