Why do I see the 3-band image in a single band?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Merve YILDIRIM
am 30 Jun. 2020
Kommentiert: Merve YILDIRIM
am 30 Jun. 2020
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?
0 Kommentare
Akzeptierte Antwort
SC
am 30 Jun. 2020
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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!