Reads an image file and returns an associative array in image format.
NOTE: Multiple images being read with the IMAGE_READ function must all be of the same height, width, and class. If a file contains images of different heights, widths, and/or classes, only the first contiguous sequence with equal height, width, and class are read.
File_Type A string specifying the default file type. (See the Discussion.)
Intleave A scalar string indicating the desired type of interleaving of 3D image arrays. (Default:
pixel
) Valid strings and the corresponding interleaving methods are:
'image'
The resulting 3D image array arrangement is (x, y, p) for p image-interleaved images of x-by-y.
'row'
The resulting 3D image array arrangement is (x, p, y) for p row-interleaved images of x-by-y.
'pixel'
The resulting 3D image array arrang10ement is (p, x, y) for p pixel-interleaved images of x-by-y. (Default)
NOTE: The Img_Count keyword is ignored if the All_Subimages keyword is set.
Quiet Suppresses successive levels of error messages, depending on the value set. This keyword accepts the same integer values used with the system variable !Quiet.
Sub_Img The index number (integer) of the first image to read from an array of images. (Default: 0, the first image)
NOTE: If Sub_Img is used to request a subimage that is not in the image file, the status key of the returned image associative array is set to a negative number.
Verbose If nonzero, any available information about the file is printed to the screen.
NOTE: Refer to the IMAGE_CREATE function for detailed information on the structure of the image associative array.
NOTE: FiletypeTGA
does not have an encoded ID number. To read this type of file you must specify the File_type keyword or filename must have a.tga
suffix.
flowers = IMAGE_READ('flowers.tif')