help
help > RE: Conversion between MNI & Image coordinates
Nov 11, 2014 02:11 AM | Konstantinos Arfanakis - Illinois Institute of Technology
RE: Conversion between MNI & Image coordinates
Hi Ping,
Please find quick answer below. In addition, we will add an update to our HOW-TO documents in the next few days. Please check back for that.
Firstly, please make sure you have read the "HOW TO register DTI data to the IIT Human Brain Atlas using DTI-TK". You can find it in the Docs. According to those instructions, I assume that you are using the 256x256x256 version of the DTI template. If you follow the instructions and register individual datasets to the 256-version of the template, then by using the following on the registered dataset:
fslorient -setsform 1 0 0 -128 0 1 0 -145 0 0 1 -109 0 0 0 1 [registered dataset]
you will be able to see your registered dataset in fslview in MNI coordinates.
If you further want to put the registered images in the 182x218x182 matrix to be able to overlay them in FSL on MNI anatomical images with the same voxel size (1mm x 1mm x 1mm) then crop the images first, swap the left-right orientation in the images if needed, and then copy the header from the desirable MNI reference. For example:
# crop registered image volume
fslroi [registered image volume] crop 37 182 19 218 37 182
# flip left-right; ignore the warning message
fslswapdim crop -x y z crop-fliplr
# copy header
fslcpgeom MNI152_T1_1mm_brain crop-fliplr
This should work for now. But please check back for the updated HOW-TO in the next few days.
Regards,
Konstantinos
Please find quick answer below. In addition, we will add an update to our HOW-TO documents in the next few days. Please check back for that.
Firstly, please make sure you have read the "HOW TO register DTI data to the IIT Human Brain Atlas using DTI-TK". You can find it in the Docs. According to those instructions, I assume that you are using the 256x256x256 version of the DTI template. If you follow the instructions and register individual datasets to the 256-version of the template, then by using the following on the registered dataset:
fslorient -setsform 1 0 0 -128 0 1 0 -145 0 0 1 -109 0 0 0 1 [registered dataset]
you will be able to see your registered dataset in fslview in MNI coordinates.
If you further want to put the registered images in the 182x218x182 matrix to be able to overlay them in FSL on MNI anatomical images with the same voxel size (1mm x 1mm x 1mm) then crop the images first, swap the left-right orientation in the images if needed, and then copy the header from the desirable MNI reference. For example:
# crop registered image volume
fslroi [registered image volume] crop 37 182 19 218 37 182
# flip left-right; ignore the warning message
fslswapdim crop -x y z crop-fliplr
# copy header
fslcpgeom MNI152_T1_1mm_brain crop-fliplr
This should work for now. But please check back for the updated HOW-TO in the next few days.
Regards,
Konstantinos
Threaded View
| Title | Author | Date |
|---|---|---|
| Guangyu Zhou | Oct 18, 2014 | |
| Konstantinos Arfanakis | Oct 20, 2014 | |
| Ping-Hong Yeh | Nov 8, 2014 | |
| Konstantinos Arfanakis | Nov 11, 2014 | |
| Guangyu Zhou | Nov 4, 2014 | |
