imformats
Manage image file format registry
Syntax
Description
imformats
displays a table of information
listing all the values in the MATLAB® file format registry. This
registry determines which file formats the imfinfo
, imread
,
and imwrite
functions support.
formatStruct = imformats(
searches
the known formats in the MATLAB file format registry for the
format associated with the file name extension specified by fmt
)fmt
.
If found, formatStruct
is a structure containing
the characteristics and function names associated with the format.
Otherwise, formatStruct
is an empty structure.
returns
a structure array, registry
= imformatsregistry
, containing all the
values in the MATLAB file format registry.
sets
the MATLAB file format registry for the current MATLAB session
to the values in registry
= imformats(formatStruct
)formatStruct
. The output structure, registry
,
contains the new registry settings. Use this syntax to replace image
file format support.
Incorrect use of imformats
to specify values
in the MATLAB file format registry can result in the inability
to load any image files. To return the file format registry to a working
state, use imformats
with the 'factory'
input.
adds
the values in registry
= imformats('add',formatStruct
)formatStruct
to the file format registry.
Use this syntax to add image file format support.
changes
the format registry values for the format with extension registry
= imformats('update',fmt
,formatStruct
)fmt
to
have the values specified by formatStruct
.
resets
the MATLAB file format registry to the default format registry
values. This removes any user-specified settings.registry
= imformats('factory')
Examples
Input Arguments
Output Arguments
Tips
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
. For more information, seestartup
.
Version History
Introduced before R2006a