Question
From the composite warp provided in the output, is it trivial to compute the inverse? How would I do that?
use case
I’m using regions of interest defined in MNI space to project onto the subject images for correlation analyses.
Thank you!
I’m still reading up on the documentation, but from what I’ve looked up, people assume you already have the inverse warp to apply to your image from the first registration.
-t, --transform transformFileName
[transformFileName,useInverse]
Several transform options are supported including all those defined in the ITK
library in addition to a deformation field transform. The ordering of the
transformations follows the ordering specified on the command line. An identity
transform is pushed onto the transformation stack. Each new transform
encountered on the command line is also pushed onto the transformation stack.
Then, to warp the input object, each point comprising the input object is warped
first according to the last transform pushed onto the stack followed by the
second to last transform, etc. until the last transform encountered which is the
identity transform. Also, it should be noted that the inverse transform can be
accommodated with the usual caveat that such an inverse must be defined by the
specified transform class
Ah, good catch. I think we should start outputting the inverse in the next release. In the meantime, you can find the warp field you want in anat_preproc_wf/t1_2_mni/ants_t1_to_mniInverseComposite.h5.
FMRIPREP>=1.0.0-rc6 nowhas this output. In this case, the filename would be sub-experimentalSE110_T1w_space-MNI152NLin2009cAsym_target-T1w_warp.h5.
Also note that the forward transform was misnamed before. Instead of space-MNI..., it should have been target-MNI.... This has been corrected in FMRIPREP>=1.0.0-rc6.