I'm trying to convert uint8 image to grayscale image using the following command
a = imread('image.png'); % a dimension 18*24*3
b = ind2gray(a, map);
But I'm getting an error message saying
Undefined function or variable 'map'
colormaperrorImage Processing Toolboxind2gray
a = imread('image.png'); % a dimension 18*24*3
b = ind2gray(a, map);
Undefined function or variable 'map'
Best Answer