-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XA61A localizer crash #1392
Comments
Precision: because the crash occurs when heudiconv indexes dicoms, it is not possible to filter these with the heuristics. |
The issue seems to be that the In the meantime, nibabel seems no to want to deal with multiple stacks for now, understandably due to the complexity. nibabel/nibabel/nicom/dicomwrappers.py Lines 669 to 673 in d9c479a
|
I manually fixed the |
@neurolabusc is this something you identified/reported to Siemens too? |
@yarikoptic it would be nice to have a concrete example of this. Can you tell me if the first series |
@bpinsard could you please check those out? |
I tested dcm2niix with the latest branch, and with the localizer from ICM Paris Cima.X and it results in a single nifti files with all slices stacked. These are all in the same stack, which is not following the dicom spec.
|
@bpinsard correctly detects that the slices are not aligned, and correctly ignores this if you request it ignores localizers ( Chris Rorden's dcm2niiX version v1.0.20241127 Clang16.0.0 ARM (64-bit MacOS)
Found 1 DICOM file(s)
slice orientation varies (localizer?) [0 1 0 0 0 -1] != [1 0 0 0 0 -1]
Ignoring localizer (sequence '') of series 1 /Users/chris/Downloads/XA61/20241003104114/1_loca_3plan_haste/0019_1.3.12.2.1107.5.2.63.213017.2024100310415286366400427.dcm |
@neurolabusc yes, as the Siemens dicoms are not compliant, I am ok with current dcm2niix behavior. |
In nibabel we can define a This does hint at the need for an API for getting multiple SpatialImage instances from a single file. While the localizer case isn't very motivating for me, I vaguely remember hearing some Vendors are going to stick multiple series (or entire studies) into a single multi-frame DICOM. |
I got my hands on Siemens XA61A data (Cima.X), and the localizer causes heudiconv (@yarikoptic FYI) to crash in nibabel code.
This is a classic localizer with 3 slices in each plane, but packed into a single enhanced dicoms.
Possibly Siemens is not following some dicoms specs.
dcm2niix v1.0.20240731 (FYI @neurolabusc) is also behaving abnormally, as it stacks the 3 slices in 1 volume, instead of splitting it in separate niftis.
The text was updated successfully, but these errors were encountered: