Function IND2GRAY expected input number 2, MAP, to be a valid colormap.
이전 댓글 표시
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
Walter Roberson
2018년 11월 16일
what shows up with imfinfo(im)
I suspect that it is not an indexed image , that the colormap is empty .
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!