-
Notifications
You must be signed in to change notification settings - Fork 229
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
Series split into multiple NIfTI volumes unexpectedly #786
Comments
Also, looking at the warnings:
(0018,5100) is |
@fedorov this reflects an issue with the DICOM images. The Image Type (0008,0008) for some images is
However, this will lead to unintended consequences for situations where the derived images have modified the signal (in your case, I can not see a difference between derived and original data). I would suggest you push this upstream to make sure that OHIF viewer does not co-mingle derived and original data. |
@neurolabusc thanks for the investigation and for explaining the logic. We missed that difference in I do not think we want to make a custom fork. The data in question is from Imaging Data Commons, and the conversion is done as part of processing to generate segmentations to be deposited back to IDC. Our goal is to implement the analysis using off-the-shelf tools and establish/test processing pipeline for DICOM data in IDC. Fortunately, a relatively small subset of images in IDC is affected by this specific issue (see ImagingDataCommons/CloudSegmentator#63), and now that we know its cause, we will be able to filter out those volumes.
That's an interesting point - looping in @pieper @sedgi @lassoan @dclunie. As a few final suggestions:
|
@fedorov the console does warn that the
If you run dcm2niix without any arguments, it will generate help. It does list several modes. However, the modes are limited to a few common edge cases. I have never heard of a situation where one wants to intentionally combine original and derived data. If a user wants to make such a change, they could always use dcmodify (or the remove feature of gdcmanon) to make remove differences that distinguish images.
|
This is interesting, but I dare say, it is going to be very hard to figure out from that message what is actually wrong with the image (that this is about Just my 2c, as they say. |
@fedorov I agree, but manufacturers are not very consistent about where or even if they report derived data. For example, GE raw fieldmaps also create a fieldmap in Hz, Siemens MR can create derived diffusion images (FA, coloredFA, etc), it can be reported in image text, or a Segmentation Storage. dcm2niix can give clearer messages if the manufactuers harmonize their work, so perhaps you want to coordinate with the appropriate DICOM working group. dcm2niix is used a lot in MR brain imaging, so it is tuned to handle a lot of the data seen in that field and report anomalies common in that area. It has less exposure to other use cases, so may not be the ideal tool for beyond its domain. |
@neurolabusc first of all, thank you again for creating and maintaining this wonderful tool! I just wanted to share feedback as a user - thank you for considering! I wish I had the powers to see manufacturers better harmonize their work. I do not think DICOM working groups have the intent or power to do that either, but I am tagging David Clunie @dclunie for awareness. IMHO, your tool has a lot of value beyond the brain domain! |
* tag 'v1.0.20240202': (135 commits) Update submodules Refactor (rordenlab#791) gantry tilt tolerance (rordenlab#791) GE step description (rordenlab#790) PatientOrient -> Patient Position (rordenlab#786) Prevent shell expansion (rordenlab#789) Replace presumably accidental bitwise AND operations Update JasPer API calls for compatibility with newer versions of the library Update divest logic, reducing duplication and supporting new mode of operation Fix PhaseEncodingDirectionDisplayed for GE Update date GE Diffusion issue rordenlab#777 minor GE Diffusion issue rordenlab#777 Kludge for issue 775 (rordenlab#775) add docstrings better python wrapper I/O issue 769: Mildly relax the check for bvec components > 1. PRs (rordenlab#745; rordenlab#768) Edge cases (rordenlab#763, rordenlab#749) Code spell ...
Describe the bug
While converting a CT series, conversion produces the following output, and generates 2 NIfTI files. Console output seems to suggest that converter is using InstanceNumber for ordering the slices. It does not appear possible to force the converter to reconstruct the volume using only ImageOrientationPatient/ImagePositionPatient.
The same series can be opened in 3D Slicer and viewed in OHIF viewer: https://viewer.imaging.datacommons.cancer.gov/viewer/1.2.840.113654.2.55.325606285867885853471999374864386972625?SeriesInstanceUID=1.2.840.113654.2.55.332967611868866852816434039713239600967 (including MPR) without issues.
To reproduce
Step through the cells of this very short notebook: https://colab.research.google.com/drive/1nRq9GtGiDdsX5Z7SdoyXIOR8szliNSha?usp=sharing. Data is publicly available.
Expected behavior
A single NIfTI file is produced.
Output log
Version
Please report the complete version string:
Chris Rorden's dcm2niiX version v1.0.20230411 (JP2:OpenJPEG) (JP-LS:CharLS) GCC8.4.0 x86-64 (64-bit Linux)
Troubleshooting
Please try the following steps to resolve your issue:
Might be related to this discussion: #622 (comment)
The text was updated successfully, but these errors were encountered: