Avi2Matrix

バージョン 1.1.0.0 (1.21 KB) 作成者: Youssef Khmou
the images contained in the avi file are placed in 3D matrix , ( type [double]).
ダウンロード: 350
更新 2012/8/1

ライセンスの表示

This function converts the avi file ( Audio/Video interleaved) into 3D matrix M(n,p,q) called Voxel or image sequence for numerical processing , with :
n: pixels along the x axis.
p: pixels along the y axis.
q : pixels along the time axis .

two internal functions used : avifino & aviread .

Screenshot source : Mehmet K "Adaptive Motion-Compensated Filtering of Noisy Image Sequences" IEEE transactions on circuits and system for video technology (1993).

For video Files with "TrueColor" Imagetype use this code instead :
%function Y=Avi2Matrix( filename )
%
%info=aviinfo(filename);
%width=info.Width;
%height=info.Height;
%nframes=info.NumFrames;
%Y=uint8(zeros(height,width,3,nframes));

%video=aviread(filename);

%for i=1:nframes
% Y(:,:,:,i)=video(i).cdata;
%end
%Y=im2double(Y);

引用

Youssef Khmou (2024). Avi2Matrix (https://www.mathworks.com/matlabcentral/fileexchange/37615-avi2matrix), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

Code improvement for reading video Files of TrueColor ImageType.

1.0.0.0