Name

ReadImage — reads an image from an image or video file

Calling Sequence

Image = ReadImage(ImagePath);

Frame = ReadImage(VideoFilePointer);

Parameters

ImageSource

name or complete path of an image file or pointer to a video file

Image

hypermatrix or matrix containing the image

Description

This function reads an image file and returns the image as hypermatrix or matrix.

Examples

RGB = ReadImage('contrib\IPD-3.1\demos\teaset.png'); 

figure(); ShowColorImage(IndexImage, 'Tea Ceremony Utils', ColorMap);

See also

WriteImage, ReadImageFile, WriteImageFile, GetVideoStruct, OpenVideoFile, CloseVideoFile, GetVideoInfo, ReadImageFromVideo