はビデオ・ファイルをオープンする
VideoFilePointer = OpenVideoFile(VideoPath);
ビデオ・ファイルの名前又はパスである
ビデオ・ファイルへのポインタ
本関数はビデオ・ファイルをオープンする。
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); | ![]() | ![]() |