Read image from graphics file - MATLAB imread
A = imread ( ___,idx) reads the specified image or images from a multi-image file. This syntax applies only to GIF, PGM, PBM, PPM, CUR, ICO, TIF, SVS, and HDF4 files. You must specify a filename input, and you can optionally specify fmt. example
imread (MATLAB Function Reference)
math.jhu.edu › 370 › helpThe file must be in the current directory or in a directory in the MATLAB path. If imread cannot find a file named filename, it looks for a file named filename.fmt. This table lists the possible values for fmt: [X,map] = imread ( filename ,fmt) reads the indexed image in filename into X and its associated colormap into map.