<< ReadImageFile IPD - Image Processing Design SearchBlobs >>

IPD - Image Processing Design >> IPD - Image Processing Design > ReadImageFromVideo

ReadImageFromVideo

は画像をビデオ・ファイルから読み込んで、ReadImageに呼び出される

呼び出し

[PixelList Dimensions] = ReadImageFile(VideoFilePointer);

引数

VideoFilePointer

ビデオ・ファイルへのポインタである

PixelList

画素のグレイ値又は色の値を含むベクトルである

Dimensions

画像の行、列とチャネルの数を含むベクトルである

説明

本関数かビデオ・ファイルを読み込んで、画素の値のリストと行、列とチャネルの数を返す。ReadImageが本関数を呼びさすので、ユーザーが本関数を呼び出すことは必要ではない。

global IPD_PATH;

VideoFilePointer = OpenVideoFile(IPD_PATH + 'demos\red-car-video.avi');

[PixelList Dimensions] = ReadImageFromVideo(VideoFilePointer);

CloseVideoFile(VideoFilePointer);

RGB = matrix(PixelList, Dimensions);

ShowColorImage(RGB, 'Result');

参考

<< ReadImageFile IPD - Image Processing Design SearchBlobs >>