dicom_parser
dicom_parser copied to clipboard
Issues with multi-frame dicom files
Describe the bug Trying to load a multi-frame dicom file. Getting incorrect image_shape (just width and height) and is_multi_frame=False.
To Reproduce Steps to reproduce the behavior:
- parse a multi frame dicom file
- can't see information regarding the frames
Expected behavior Should be able to read the file as multi frame and get all individual frames' headers + pixel data as well.
Screenshots NA
Desktop (please complete the following information):
- OS: MacOS Sonoma (M1 chip)
- Browser: NA
- Version: 14.4.1
Smartphone (please complete the following information):
- Device: NA
- OS: NA
- Browser: NA
- Version: NA
Additional context
Attached a synthetic file for reference. multi-frame.dcm.zip
pydicom seems to correctly read all the frames. So, for the above file:
- pydicom.dcmread('multi-frame.dcm').pixel_array.shape = (2, 3, 4)
- dicom_parser.Image('multi-frame.dcm').image_shape = (3, 4)
Is this already supported through a different method which I've overlooked by chance?