Skip to content

Issues with multi-frame dicom files #126

Description

@pritamrungta

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions