Multi-frameΒΆ

Multi-frame DICOM images are supported, and the returned pixel arrays will be parsed automatically:

>>> image = Image("/path/to/multi-frame/")
>>> image.raw.pixel_array.shape
(112, 512, 512)
>>> image.data.shape
(512, 512, 56, 2)

The associated MultiFrame instance and underlying attributes are available through the multi_frame property.

>>> type(image.multi_frame)
dicom_parser.utils.multi_frame.multi_frame.MultiFrame
>>> image.multi_frame.image_orientation_patient
array([[ 1.,  0.],
       [ 0.,  0.],
       [ 0., -1.]])