Read any image as grayscale
im = gray_imread(filename)
This is a simple utility routine to read any image as grayscale. If the image is truecolor or pseudo-color, it is converted using im2gray
initial_dir = PWD; chdir (SIPDIR + 'images'); Img = gray_imread('ararauna.png'); clf imshow(Img,[]); chdir(initial_dir);
http://siptoolbox.sourceforge.net