opens a video file for reading
VideoFilePointer = OpenVideoFile(VideoPath);
name or complete path of a video file
pointer to a video file
This function opens a video file for reading.
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); | ![]() | ![]() |