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.

 Akzeptierte Antwort

KSSV
KSSV am 15 Jul. 2021
Bearbeitet: KSSV am 15 Jul. 2021
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)

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 15 Jul. 2021

Kommentiert:

am 15 Jul. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by