File Exchange

image thumbnail


version 1.1 (1.21 KB) by

the images contained in the avi file are placed in 3D matrix , ( type [double]).



View License

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 )


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

Comments and Ratings (1)

Youssef Khmou

Youssef Khmou (view profile)

the reverse process 3dMatrix==>avifile can be found in the following page :



Code improvement for reading video Files of TrueColor ImageType.

MATLAB Release
MATLAB 7.4 (R2007a)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today