MATLAB Function Reference | ![]() ![]() |
Syntax
imformats formats = imformats formats = imformats('fmt') formats = imformats(format_struct) formats = imformats('factory')
Description
imformats
displays a table of information listing all of the values in the MATLAB file format registry. This registry determines which file formats are supported by the imfinfo
, imread
, and imwrite
functions.
formats = imformats
returns a structure containing all of the values in the MATLAB file format registry. The fields in this structure are listed below.
Note
The values for the isa , info , read , and write fields must be functions on the MATLAB search path or function handles.
|
formats = imformats('fmt')
searches the known formats in the MATLAB file format registry for the format associated with the filename extension 'fmt'
. If found, imformats
returns a structure containing the characteristics and function names associated with the format. Otherwise, it returns an empty structure.
formats = imformats(format_struct)
sets the MATLAB file format registry to the values in format_struct
. The output structure, formats
, contains the new registry settings.
formats = imformats('factory')
resets the MATLAB file format registry to the default format registry values. This removes any user-specified settings.
Changes to the format registry do not persist between MATLAB sessions. To have a format always available when you start MATLAB, add the appropriate imformats
command to the MATLAB startup file, startup.m
, located in $MATLAB/toolbox/local
on UNIX systems, or $MATLAB\toolbox\local
on Windows systems.
See Also
fileformats
, imfinfo
, imread
, imwrite
, path
Bit-Mapped Images for related functions
![]() | imfinfo | import | ![]() |