User`s guide
Logging Image Data to Disk
6-45
Logging Data to a Disk File
Note: AVI files are limited to a bit-depth of 8 bits per pixel for each band. If you have
higher bit data, you should not log it to an AVI file since the AVI format is restricted to 8-
bit data. If you do log higher bit data to an AVI file, it will be scaled and then logged as 8-
bit data.
Creating an AVI File Object for Logging
To create an AVI file in the MATLAB environment, use the avifile function. You
specify the name of the AVI file to the avifile function. For example, to create the AVI
file named my_datalog.avi, enter this code at the MATLAB command prompt.
aviobj = avifile('my_datalog.avi');
The avifile function returns an AVI file object. You can use the AVI file object
returned by the avifile function, aviobj, 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 log image data, see the following topics.
• “Logging Grayscale Images Using an AVI File” on page 6-46