dicom_parser icon indicating copy to clipboard operation
dicom_parser copied to clipboard

Issues with multi-frame dicom files

Open pritamrungta opened this issue 9 months ago • 0 comments

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:

  1. parse a multi frame dicom file
  2. 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?

pritamrungta avatar May 13 '24 11:05 pritamrungta