Reads image file
im = imread(filename)
imread
reads many types of image files into
Scilab. The format of the file is inferred from the extension in the
filename parameter. Currently the following file formats are
supported:
im
matrix. If filename contains a truecolor image,
im
is a MxNx3 hypermatrix, so for example
im(:,:,1)
stands for the red channel. For gray images, im is a MxNx1 unsigned char matrix.im = imread(fullpath(getSIVPpath() + "/images/" + 'lena.png')); imshow(im); | ![]() | ![]() |
Images with a palette are not supported. All kinds of images are converted to gray images or RGB images.
http://sivp.sf.net