名前
OpenVideoFile — はビデオ・ファイルをオープンする
呼び出し
VideoFilePointer = OpenVideoFile(VideoPath);
引数
- VideoPath
ビデオ・ファイルの名前又はパスである
- VideoFilePointer
ビデオ・ファイルへのポインタ
例
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);