Is there a way to read a DICOM from bytes in memory

Is there a way to read a DICOM from bytes in memory into a SimpleITK Image object? This is where the DICOM slice instances are each a binary memory blob. There is SimpleITK.GetImageFromArray(image_volume) that can create a SimpleITK.SimpleITK.Image object once the DICOM blob has been processed into a volume by some other toolkit such as pynrrd. Though we still need to SetOrigin(…) and SetDirection(…)

Hello @ktdiedrich,

Short answer, no.

Same question asked here. Please see slightly more detailed discussion there with a potential workaround.

1 Like