Name
CloseVideoFile — closes a video file
Calling Sequence
CloseVideoFile(VideoFilePointer);
VideoFilePointer = CloseVideoFile(VideoFilePointer);
Parameters
- VideoFilePointer
pointer to a video file
Description
This function closes a video file.
Examples
VideoPath = 'contrib\IPD-5.0\demos\red-car-video.avi';
VideoInfo = GetVideoInfo(VideoPath);
VideoFilePointer = OpenVideoFile(VideoPath);
figure();
for n = 1 : VideoInfo.NumberOfFrames
RGB = ReadImage(VideoFilePointer);
ShowColorImage(RGB, VideoPath);
end;
CloseVideoFile(VideoFilePointer);