<< OpenImage Image Processing Design PadImage >>

Image Processing Design >> Image Processing Design > OpenVideoFile

OpenVideoFile

opens a video file for reading

Calling Sequence

VideoFilePointer = OpenVideoFile(VideoPath);

Parameters

VideoPath

name or complete path of a video file

VideoFilePointer

pointer to a video file

Description

This function opens a video file for reading.

Examples

global IPD_PATH;

VideoPath = IPD_PATH + 'demos\red-car-video.avi';

VideoInfo = GetVideoStruct(VideoPath);

VideoFilePointer = OpenVideoFile(VideoPath);

figure();

for n = 1 : VideoInfo.NumberOfFrames

 RGB = ReadImage(VideoFilePointer);

 ShowColorImage(RGB, VideoPath);

end;

CloseVideoFile(VideoFilePointer);

See Also


Report an issue
<< OpenImage Image Processing Design PadImage >>