DICOMDIR
- Import fully supports DICOMDIR files.
Background & Context
-
- MIME type: application/dicom
- DICOM medical imaging format.
- Commonly used in medical imaging equipment and picture archiving and communication systems.
- DICOMDIR references multiple patients, studies and series of images.
- DICOM is an acronym for Digital Imaging and Communications in Medicine.
- DICOM stores multiple raster images together with patient and device information.
- Binary format.
- Supports a variety of image-encoding and data-compression methods.
- DICOM Version 3.0 was introduced in 1993.
Import & Export
- Import["path/to/DICOMDIR",elements] imports the specified elements.
- See the following reference pages for full general information:
-
Import import from a file CloudImport import from a cloud object ImportString import from a string ImportByteArray import from a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Structure elements:
-
"FileNames" an association of file names following the structure of referenced files "StructureGraph" a graph showing the structure of the referenced files "StructureGraphLegend" legend for the structure graph "Summary" summary of properties - Metadata elements:
-
"MetaInformation" metadata per DICOM file "PatientCount" total number of patients referenced "Patients" an association of patient IDs and available metainformation "StudyCount" total number of studies referenced "Studies" an association of patients and corresponding studies "SeriesCount" total number of series referenced "Series" an association of patients, studies and corresponding series - Data elements:
-
"CenterImage" an association of center images "Image" an association of first images "Image3D" an association of Image3D objects "ImageList" an association of list of images - Overlay element:
-
"Overlays" an association of overlay images - Import by default uses the "FileNames" element.
- Import of a multi-image series with the "Image" element gives the first image.
- Subelements for partial data import for any element elem can take patient, study or series specification in the form {elem,patient,study,series}, where either of the patient, study or series can be any of the following:
-
n nth entry -n counts from the end id specific entry by ID {n1,n2,…} a list of entry indices or IDs
Options
- Import option:
-
BoxRatios Automatic bounding 3D box ratios "ScalingWindow" Automatic how to scale image data - "ScalingWindow" can take the following settings:
-
Automatic automatic scaling None no scaling "MinMax" scale to min and max of data in all frames "MinMaxPerFrame" scale to min and max of each frame {center,w} scale to the range {center-w,center+w} <"Center"center,"Width"w > scale to the range {center-w,center+w} <"Min"min,"Max"max > scale to the range {min,max} - With "ScalingWindow"->Automatic, values are scaled using scaling values stored in the file. If no scaling specification is stored, values are scaled using the "MinMax" method.
Examples
open allclose allBasic Examples (3)
Import Elements (44)
Data Elements (14)
"CenterImage" (3)
"Data" (3)
"Image" (3)
"ImageList" (3)
Metadata Elements (30)
"FileNames" (4)
Import a structured collection of file names referenced by the given DICOMDIR:
Import file names related to a particular patient:
Import file names related to the first series of the first study of a particular patient:
Import file names related to the first series of the first study for all patients in the DICOMDIR:
"FilePaths" (4)
Import a structured collection of absolute file paths referenced by the given DICOMDIR:
Import absolute file paths related to a particular patient:
Import absolute file paths related to the first series of the first study of particular patient:
Import absolute file paths related to the first series of the first study for all patients in the DICOMDIR:
"MetaInformation" (4)
"Patients" (4)
"Series" (4)
Import structured information about all the series referenced by the given DICOMDIR:
Get information about all series of a patient with a given ID:
Get information about the first three series of the first study of the first patient:
Get the series description of the fourth series from the first study of the first patient: