VideoFilePointer = OpenVideoFile(VideoPath);
global IPD_PATH; VideoPath = IPD_PATH + '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);