名前

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);

参考

GetVideoStruct, ReadImage, CloseVideoFile, GetVideoInfo, ReadImageFromVideo