closes a video file
CloseVideoFile(VideoFilePointer); VideoFilePointer = CloseVideoFile(VideoFilePointer);
pointer to a video file
This function closes a video file.
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); | ![]() | ![]() |