23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2aviread<br />

Purpose Read an Audio Video Interleaved (AVI) file.<br />

Syntax mov = aviread(filename)<br />

mov = aviread(filename,index)<br />

aviread<br />

Description mov = aviread(filename) reads the AVI movie filename into the <strong>MATLAB</strong><br />

movie structure mov. If filename does not include an extension, then .avi is<br />

used. Use the movie function to view the movie, mov. On UNIX, filename must<br />

be an uncompressed AVI file.<br />

mov has two fields, cdata and colormap. The content of these fields varies<br />

depending on the type of image.<br />

mov = aviread(filename,index) reads only the frame(s) specified by index.<br />

index can be a single index or an array of indices into the video stream. In AVI<br />

files, the first frame has the index value 1, the second frame has the index<br />

value 2, and so on.<br />

See also aviinfo, avifile, movie<br />

Image Type mov.cdata Field mov.colormap Field<br />

Truecolor height-by-width-by-3<br />

array<br />

Empty<br />

Indexed height-by-width array m-by-3 array<br />

2-83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!