Name

ReadImageFile — reads an image file, is called by ReadImage

Calling Sequence

[PixelList Dimensions] = ReadImageFile(ImagePath);

Parameters

ImagePath

the file name or the complete path of an image file

PixelList

column vector that contains the color channel intensities or gray values

Dimensions

column vector that contains the number of rows, columns and color channels

Description

This function reads an image file and returns a pixel list and width, height and number of channels. ReadImage calls this function so you do not need to call it yourself.

Examples

[PixelList Dimensions] = ReadImageFile('contrib\IPD-3.1\demos\teaset.png');

RGB = matrix(PixelList, Dimensions);

ShowColorImage(RGB, 'Result');

See also

ReadImage, WriteImage, WriteImageFile