Function IND2GRAY expected input number 2, MAP, to be a valid colormap.
Ältere Kommentare anzeigen
Iam trying to read and convert color images to gray,
The code is :
[X,MAP]=imread(im);
x=ind2gray(X,MAP);
the images are BMP and they were jpg images and i convert them to BMP using online converter.
any help please ?
2 Kommentare
Walter Roberson
am 16 Nov. 2018
what shows up with imfinfo(im)
I suspect that it is not an indexed image , that the colormap is empty .
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!