Issue Summary:
I’m working with a dynamic contrast-enhanced abdominal MRI dataset, with 320 slices divided into 4 phases (non-contrast, arterial, portal venous, delayed). The goal is to separate these phases and generate corresponding DICOM files that can be correctly loaded and viewed in 3D Slicer.
Problem:
- DICOM Files Segmentation: The original file has all 4 phases combined, and I need to split them into individual phases, each containing 80 slices.
- DICOM Viewer Issues: After splitting the phases, the resulting DICOM files can be opened, but they do not behave as expected:
- Inconsistent Browsing: In viewers like MicroDICOM, scrolling through slices is not smooth, and slices have to be clicked manually.
- 3D Slicer Errors: While importing into 3D Slicer, the following warning appears:
3.“Multi-frame image. If slice orientation or spacing is non-uniform then the image may be displayed incorrectly.”*Moreover, the reconstructed files seem to contain slices from multiple phases.
Methods Attempted:
- Original Dataset Processing: We extracted pixel data from the DICOM file and attempted to split the phases based on temporal indices using Python (
pydicom
). We ensured proper metadata such asSeriesInstanceUID
,SliceThickness
,SpacingBetweenSlices
,PixelRepresentation
,BitsAllocated
, etc., are copied or set correctly. - File Reconstruction: The pixel data was successfully split into the four phases, but the reconstructed files had problems:
- Incorrect browsing behavior in DICOM viewers.
- In 3D Slicer, the loading was problematic, and slices were not displayed correctly.
- Pixel Data Metadata: Ensured that the pixel data metadata (
BitsAllocated: 16
,BitsStored: 12
,High Bit: 11
, andPixelRepresentation: 0
) matched the original DICOM file.
Despite these efforts, 3D Slicer still throws the geometry-related warning and does not display the images correctly.
Request for Help:
I am looking for guidance on:
- Correctly splitting multi-phase DICOM files for smooth scrolling in viewers like 3D Slicer.
- Fixing metadata or geometry issues that may be causing the error in 3D Slicer.