-
Notifications
You must be signed in to change notification settings - Fork 228
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
GE Number of slice error #306
Comments
Thanks for sharing. If you build from the development branch you will find that it now gives precedence to the private tag 0021,104F if it disagrees with the public tag 0020,1002. It will also generate a warning if you convert one of these images in verbose mode:
However, this modification reveals a fatal error in your data: some images are saved with the row order reversed relative to others (making some images appear flipped in the anterior-posterior direction). This is not a limitation of dcm2niix, but an inherent limitation in your DICOM images (you can see this with any DICOM tool). I suggest you contact your GE research collaboration manager to resolve this. |
Got it. Thanks for the helps! |
Hi, i have a case which is a 3D T1 from GE/SIGNA_Architect with dimensions (252, 512, 512). In the latest release it is incorrectly converted to an image with shape (512, 512, 126, 2), whereas previously it was converted correctly. As far as i can tell, this is caused by the relevant commit of this issue because the relevant tags are the following:
Does this mean that these dicom tags of my case are faulty? Unfortunately i don't have many cases from GE to compare and determine which is correct. |
Can you please test with the latest developmental build. On Unix systems you can get this from
Of Windows, you should be able to get the latest developmental build compiled by AppVeyor. The latest developmental commit should report as version v1.0.20191031. If the problem persists, I think I would need to look at a sample dataset to understand what is going on. I wonder if this is a scan that was interpolated in the slice direction. |
I tested with the latest developmental build and the problem persists.
I sent you via email the dataset. If you prefer another way to send you the data, please let me know. Thanks! |
Thanks for the sample dataset. If you run dcm2niix in verbose mode it notes Regardless, I do not know of anyway to resolve this discrepancy when reading each 2D slice. My latest commit resolves this by examining the number of repeated slice positions when saving the 3D/4D files. This should comprehensively address this issue. Thanks for the example. |
No problem. I can confirm it's solved in this example. Thanks! |
* tag 'v1.0.20190720': Update dcm_qa submodule. Handle rare VRs (https://www.aliza-dicom-viewer.com/download/datasets) New default merge option "-m o" will merge CTs and segment MRIs (https://discourse.slicer.org/t/odd-dicom-import/7576) --progress option (rordenlab#314; rordenlab#312) Tune verbosity (rordenlab#312) GE Slice Timing From Protocol Data Block (rordenlab#311) Desparate guess of GE slice times from ProtocolDataBlock (clone dicm2nii, assumes TA close to TR) Support interleaved (rordenlab#309) Slice times from ucMode (rordenlab#309) GE number of slice discrepancy (rordenlab#306) Simplify slice timing code, develop stc validation (https://github.com/neurolabusc/dcm_qa_stc) hdr.vox_offset is a float not integer (https://www.nitrc.org/forum/message.php?msg_id=27155) BIDS tags for PASL fairest sequent Read 0019,1029 (rordenlab#296) Generate warning rather than error when palette colors are detected (UNFmontreal/Dcm2Bids#54) Update tinydir call (rordenlab#298) Bruker 4D datasets: correct slice ordering Bruker 4D datasets: Fix parametric maps grouping Changes up to divest v0.8.1 Support isotropic scans for NRRD
So basically, I will just copy what I posted before.
I am not sure how dcm2niix determines number of slices, but in my case there is a private tag (0021,104f) addressing this.
Here is the anonymized dataset
Hi there,
I found dcm2niix has some problem determining number of slices per volume for some GE BOLD fieldmap data (DV26). In my case, the data is a 128 x 128 x 60 x 8 matrix however, dcm2niix thinks it is a 128 x 128 x 240 x 2 matrix.
Here is the dcm2niix output
../dcm2niix .
Compression will be faster with 'pigz' installed
Chris Rorden's dcm2niiX version v1.0.20190410 (JP2:OpenJPEG) (JP-LS:CharLS) GCC5.5.0 (64-bit Linux)
Found 480 DICOM file(s)
slices stacked despite varying acquisition numbers (if this is not desired recompile with 'mySegmentByAcq')
Convert 480 DICOM as ./anonymous_1.2.840.113619.6.408.182238963867883925330132808668133220387_1.2.840.113619.2.408.4738430.14026340.32333.1556736885.550_20190620134748_16_t29477 (128x128x240x2)
Conversion required 1.448439 seconds (0.552041 for core code).
The text was updated successfully, but these errors were encountered: