MATLAB: Conver bmp image to color image

cropImage Processing Toolbox

hi.i have a color image and use the crop function to select part of it.but Output image isnt color.why? how get a color image after cropping?
im=imread('5 2R.bmp');
croppedImage = imcrop(im,[0.5 80.5 45 38]);
imshow(croppedImage);

Best Answer

Is im an indexed image? What does this say
[im, colorMap] = imread('5 2R.bmp');
whos colorMap
[rows, columns, numberOfColorChannels] = size(im)