Reads image file - Add modes support
im = imread(filename) im = imread(filename,modes) im = imread(url)
A string, the image filename or a valid URL to be read. For the case of URL, the full syntax must be used. For example, "http://www.tritytech.com/images/phocagallery/roll8_ScilabIOT.png".
imread mode to be specified for different image format
All images will be converted to gray images or RGB images. For gray images, this is a MxN unsigned char matrix; For RGB images, this is a MxNx3 unsigned char matrix.
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 = imread(filename)
reads image in filename into 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(getIPCVpath() + "/images/" + 'baboon.png')); imshow(im); | ![]() | ![]() |