-
Notifications
You must be signed in to change notification settings - Fork 53
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
What is the current state with respect to enhanced MRI (3D DICOMs)? #71
Comments
@moloney Any feedback on this? |
Sorry to be so slow to reply. My colleague and some other folks have done some work to improve "enhanced" (multiframe) handling in nibabel, but it isn't leveraged in dcmstack. At this point I prefer to put any time I have towards getting dcmstack functionality into nibabel, rather than implementing new functionality here. |
@moloney Thank you for your reply and the clarification on the maintenance / state of this project. We will probably need to switch to the new nibabel implementation as soon as it is available. As of the coming October all Siemens devices here will be switched/updated to "enhanced" (multiframe). |
I found this repository: https://github.com/matthew-brett/czi-nibabel (not sure if that is supposed to be public). Going by this:
The grant starts at January 1, 2021 and the milestone is to have the DICOM to NIfTI integration into Nibabel ready 3 months after that. So basically this functionality is supposed to be available in April 2021. Correct me if that is a wrong assumption. Not sure if that includes the multiframe handling. Sadly we will have to somehow cope with this differently. As mentioned, as of October we (and probably many more) will have be able to handle multiframe DICOMs. We really like dcmstack and did hope that we could stick to it (or the Nibable replacement), but if the above mentioned timeframe is accurate, then we will need to switch to something like dcmtk. |
became also a problem for heudiconv: nipy/heudiconv#582 with the link to sample dicoms at nipy/heudiconv#582 (comment) . Detailed traceback from local execution
|
We got another user reporting the same issue in heudiconv: nipy/heudiconv#613 . I wonder on either @matthew-brett et al in czi-nibabel achieved the desired functionality which could be used in dcmstack to handle such DICOMs? |
I just opened a PR with something that seems to be working for 3D enhanced DICOM files. Feel free to test it out and give feedback, I just want to add tests before merging. Adding support for 4D enhanced DICOM files would probably also be doable, but so far isn't a priority for me. |
What else is needed to get that pull request finished? |
The branch for PR #84 is in a good enough state for people to start testing. Still some clean up and improvements I want to make before merging, but the bulk of the work is done. Supports multi-frame files with up to four dimensions thanks in part to the work I recently pushed to Also, I should mention that the meta data structure in the Nifti extension is much nicer to work with than the original multi-frame DICOM as I get rid of all the extra nesting they added. I also do a first-pass attempt at producing some slightly normalized meta data that goes further towards normalizing across vendors and legacy vs multi-frame DICOM. |
Thank you for working on this! We really would like to test it out (and see this released in a new version) but atm. do not have the time to do so. |
I went ahead and merged PR #84 into master. I'm sure there is still room for improvement both here and in Nibabel's dicomwrappers, but at this point it would be better to open more specific issues for anything that comes up. |
@moloney can you publish a new release? We need a release version to test. |
I created issue #97 to track what needs to be done for a release. Unless there is an institutional block then installing directly from github is generally quite easy, and any additional testing on real world data sets prior to release would be very helpful. |
I just tested an enhanced MR image from a Siemens device and got an exception telling me that
time
is missing:dcm2niix had no issue converting the enhanced MR image.
Should this generally work? Or is this not yet implemented?
I did successfully load the enhanced MR image via pydicom, but it fails on adding it to the stack:
What is still missing for this to work? Could you need support implementing this? Do you need an example file that I can send you?
The text was updated successfully, but these errors were encountered: