-
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
Incorrect conversion of DWI data #40
Comments
@chrisfilo Chris, I am afraid the the dcm2niix dwi converted data supplied to BIDS is not correctly oriented. I also think that the gradient directions may not be correct. I am trying to diagnose which of the DWI files may be incorrect. |
Hans, -c |
Hans, a.) Since I do not use or maintain slicer, can you tell me if the NIfTI images appear to have the corrected image orientation when loaded in MRIcroGL and SPM. My software should preserve the spatial transform in the SForm and QForm, so tools that use these should correctly display your image. |
@neurolabusc Thank you for the comments. They are very helpful.
a) I spoke too soon here. I made a mistake when loading the data. Thanks, |
Hans- I do want to say that these are highly unusual images, and I have never been able to generate images like this from any Siemens scanners. Like most Siemens EPI images the 2D slices are saved as a mosaic image. However, typically the inferior slice is saved in the upper left and the image position increases superiorly as you read the columns, rows (just like we read English, so the order for an 8-slice volume is [1 2 3; 4 5 6; 7 8 -] with numbers representing increasing superior position not acquisition order. However, with your scans the most superior slice is in the upper left, so the order is [8 7 6; 5 4 3; 2 1 -]. This is reported in the CSA 'ProtocolSliceNumber' field. While my software seems to preserve slice position and diffusion vectors for your data, I would strongly recommend you acquire validation data for this (both DTI data as well as fMRI if you plan to do slice timing). I have updated this project to include a couple of commented lines: |
Adding cross reference: https://groups.google.com/d/msg/comp.protocols.dicom/hKNsgnjS1vs/yKTyOVwvAQAJ |
@malaterre and @hjmjohnson - I have now acquired a sample dataset, described and provided links to provide insight for reversed Siemens Image Numbering. The image below shows an example where the image numbering is reversed and acquisition was set to interleaved. In the middle of this volume the participant moved his head from the canonical position to the head rotated toward the shoulder. As you can see, the acquisition was still in the head-to-foot order, even though the slices are saved in the reverse order (with the top left image in the mosaic being the most superior rather than the most inferior). I acquired samples with both the Siemens product and CMRR sequences. Therefore, this suggests that changing the image numbering changes how slices are saved to disk, but not how they are acquired. This is contrary to what others had suggested. The latest version of dcm2niix (v1.0.20171021) reorders both the slices and the slice times in a way that should make SPM happy. To reiterate the Siemens white paper I cite "Do not use the mode H>>F because this complicates the numbering" - this change appears to only complicate things, and it does not provide a method to acquire descending interleaved images. |
* commit 'v1.0.20171017-3-g9ccc4c0': Detect SMS using 0051,1011 if MosaicRefAcqTimes missing rordenlab#141 Hide NIfTI sliceOrder if protocolSliceNumber1 > 1 SliceTiming for reversed image numbering https://github.com/neurolabusc/dcm2niix/issues/40 Update dcm_qa submodule. New version (v1.0.20171017) Added link rordenlab#138 Store mulbiband factor in NIfTI descrip field (e.g. "mb=2") https://www.nitrc.org/forum/message.php?msg_id=22593 Add patient sex, weight, etc, https://www.nitrc.org/forum/message.php?msg_id=22567 Add ImageOrientationPatientDICOM and InPlanePhaseEncodingDirectionDICOM for 3D undistortion Compiling with CentOS 7: rordenlab#137 BIDS 1.0.2 DelayTime field for sparse fMRI Add InstitutionalDepartmentName Get ProtocolName from CSA header if it is not in DICOM header nipy/heudiconv#80 Change name of output tag of two variables to match DICOM Group PixelBandwidth with DwellTime in output json Vanquish compiler warnings. Report lower order shims prior to higher order (requested by mharms) Handle Siemens product gradient offsets? More Siemens information saved to BIDS BIDS: Do not set multiband factor for 3D EPI, report as "MRAcquisitionType": "3D",
Chris,
I am working to convert data into the BIDS format, but using the dcm2niix tool is resulting in the following warnings:
/scratch/johnsonhj/local/bin/dcm2niix -f sub-aaa_ses-001_dwi -b -z -o$(pwd)/output $ {DICOM_DIR}
Chris Rorden's dcm2niiX version 15Aug2016 (64-bit)
WARNING: CSA 'ProtocolSliceNumber' SUGGESTS REVERSED SLICE ORDER: SPATIAL AND DTI COORDINATES UNTESTED
The generated json file is:
{
"Manufacturer": "Siemens",
"ManufacturersModelName": "TrioTim",
"MagneticFieldStrength": 3,
"FlipAngle": 90,
"EchoTime": 0.088,
"RepetitionTime": 9.1,
"EffectiveEchoSpacing": 0.000400005,
"SliceTiming": [
4.4375,
9.0075,
4.3075,
8.875,
4.1775,
8.745,
4.0475,
8.615,
3.9175,
8.485,
3.785,
8.355,
3.655,
8.2225,
3.525,
8.0925,
3.395,
7.9625,
3.265,
7.8325,
3.1325,
7.7,
3.0025,
7.57,
2.8725,
7.44,
2.7425,
7.31,
2.6125,
7.18,
2.48,
7.0475,
2.35,
6.9175,
2.22,
6.7875,
2.09,
6.6575,
1.9575,
6.5275,
1.8275,
6.395,
1.6975,
6.265,
1.5675,
6.135,
1.4375,
6.005,
1.305,
5.875,
1.175,
5.7425,
1.045,
5.6125,
0.915,
5.4825,
0.785,
5.3525,
0.6525,
5.2225,
0.5225,
5.09,
0.3925,
4.96,
0.2625,
4.83,
0.1325,
4.7,
0,
4.57 ],
"PhaseEncodingDirection": "j-"
}
Is this something that I should be worried about?
Additionally, when I load this into the Slicer application, the images always are incorrectly oriented.
Any advice would be greatly appreciated.
Thanks,
Hans
The text was updated successfully, but these errors were encountered: