Mosaic

Reading 4D data encoded as mosaics is supported natively, and Image instances will, by default, return a 3D stacked volume. The same applies for Series instances, which simply stack the images’ data.

Example

>>> fmri_series = Series('/path/to/dicom/fmri/')
>>> fmri_series.data.shape
(96, 96, 64, 200)

The associated Mosaic instance and underlying attributes are avialble through the mosaic property.

>>> type(image.mosaic)
dicom_parser.utils.siemens.mosaic.Mosaic
>>> image.mosaic.volume_shape
(96, 96, 64)