Read and Write Image Data from Files

Read and write image data from files, get information about contents of image files


DICOM BrowserExplore collection of DICOM files


expand all

imreadRead image from graphics file
imwriteWrite image to graphics file
imfinfoInformation about graphics file
dicominfoRead metadata from DICOM message
dicomreadRead DICOM image
dicomwriteWrite images as DICOM files
dicomreadVolumeConstruct 4-D volume from set of DICOM images
dicomCollectionGather details about related series of DICOM files
dicomanonAnonymize DICOM file
dicomdictGet or set active DICOM data dictionary
dicomdisp Display DICOM file structure
dicomlookupFind attribute in DICOM data dictionary
dicomuidGenerate DICOM globally unique identifier
images.dicom.decodeUIDGet information about DICOM unique identifier
images.dicom.parseDICOMDIRExtract metadata from DICOMDIR file
niftiinfoRead metadata from NIfTI file
niftiwriteWrite volume to file using NIfTI format
niftireadRead NIfTI image
analyze75infoRead metadata from header file of Analyze 7.5 data set
analyze75readRead image data from image file of Analyze 7.5 data set
interfileinfoRead metadata from Interfile file
interfilereadRead images in Interfile format
nitfinfoRead metadata from National Imagery Transmission Format (NITF) file
nitfreadRead image from NITF file
isnitfCheck if file is National Imagery Transmission Format (NITF) file
dpxinfoRead metadata from DPX file
dpxreadRead DPX image


Read and Write Standard Graphics Files

Image Types in the Toolbox

Image types determine how MATLAB® interprets data matrix elements as pixel intensity values. The toolbox supports binary, indexed, grayscale, and truecolor image types.

Get Information About Graphics Files

You can read the metadata contained in graphics files of supported formats. Some metadata is present in all files, and other metadata depends on the file format.

Work with DICOM and Other Medical Files

DICOM Support in the Image Processing Toolbox

The Digital Imaging and Communications in Medicine (DICOM) Standard facilitates access to image data and files across medical imaging equipment.

Create New DICOM Series

When writing a modified image to a DICOM file, you can make the modified image the start of a new series.

Explicit Versus Implicit VR Attributes

DICOM infers a two-letter value representation (VR) of an attribute unless a VR is specified.

Mayo Analyze 7.5 Files

Analyze 7.5 is a file format, developed by the Mayo Clinic, for storing MRI data.

Interfile Files

Interfile is a file format that was developed for the exchange of nuclear medicine image data.