User`s guide
Logging Image Data to Disk
Logging Data to a Disk File
Creating an AVI File Object for Logging
TocreateanAVIfileintheMATLABenvironment,usetheavifile function.
YouspecifythenameoftheAVIfiletothe
avifile function. For example, to
createtheAVIfilenamed
my_datalog.avi, enter this code at the MATLAB
command pro m pt.
aviobj = av
ifile('my_datalog.avi');
The av ifile function returns an AVI file object. You can use the AVI file
object returned by the
avifile function, avio bj, to modify characteristics
of the AVI file by setting the values of the object’s properties. For example,
you can specify the codec used for data compression or specify the desired
quality of the output.
For more information about AVI file objects, see the MATLAB
avifile
documentation. For more information about using AVI files to lo g image data,
see the following topics.
• “Logging Grayscale Images” on page 5-42
• “Guidelines for Using an AVI File Object to Log Image Data” on page 5 -42
• “Closing the D iskLoggerAVIfile”onpage5-42
5-41