I have a highres magnetization transfer (MT) slab of the brainstem that I would like to coregister to EPI space (potentially through an anatomical image?).
What do you think would be the best way to do it? I thought of several scenarios that included align_epi_anat.py, 3dQwarp, cat_matvec and 3dNwarpApply, but I got somewhat confused with computing and concatenating transformation matrices.
Your help is appreciated. Please find below some example images.
Are you expecting some distortion among these images that requires nonlinear warping?
I would probably align the MT to anatomical, the EPI to the anatomical, both with align_epi_anat.py. The MT to T1 anatomical alignment is the trickiest and would probably require the cost function to be lpc and the -partial_coverage option. If the MT and T1 are already aligned, then that is better, of course. If you already have the alignments already done, then you can invert and chain as you like to arrive in one of the 3 spaces (T1,EPI,MTR).
where epi_al_mat.aff12.1D -I is the inverse of the aligned EPI to anatamical image (because later on, I want to go from anatomical to EPI space) and mt_al_mat.aff12.1D is the MT aligned with the anatomical image.
Together with the output from 3dQwarp (anatSSQ_WARP, which is the warp from the anatomical image to EPI), I finally use
The EPI to anatomical dataset almost never uses the nonlinear warp unless there is significant distortion. Verify the affine transformation concatenation first by itself with 3dAllineate -1Dmatrix_apply .
Then use a command like this to show and compute the reduced transformation chain of affine transformations.
whereami -show_chain M E
++ ----- Transform list: -------
M::A -> E::A I
whereami -calc_chain M E
++ ----- Transform list: -------
M::A -> E::A I
++ ----- Transform list: -------
M::E
++ ----- Transform list: -------
xform: M::E
xform_type: Affine
xform source: M dest: E
coord order: rai
xform dist: 1.000000 inverse: 0 post: 0 nelts: 12
0.500000 0.000000 0.000000 -5.000000
0.000000 0.500000 0.000000 0.000000
0.000000 0.000000 0.500000 5.000000
++ -------
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.