MATLAB: How to convert single indexed .tiff image to grayscale image processing Hello! I have a single indexed .tiff file. So there is no colormap. When i check the information of image, Colortype is 'grayscale'. i want to convert.tiff image to grayscale. Best Answer img(:,:,4) = [];%discard fourth partg=rgb2gray(img); Related SolutionsMATLAB: Cameraman.tif is an indexed image Most likely, 'cameraman.tif' is just a greyscale image.In any case, colormap works just as well for greyscale images, so is not any indication:imshow(randi([0 255], 500, 500, 'uint8'));colormap(summer); MATLAB: How to convert tiff image into gray image Your image has a transparency channel in addition to the three colour channels. If you don't want to do anything with the transparency information, just discard it: img(:,:,4) = []; %proceed with rgb2gray Related QuestionOverlay binary image on RGB imagePlot of more pictures in axesHow to convert gray or indexed images to color imagesGray Image to Color Indexed Image
Best Answer