Closed chrisadamsonmcri closed 2 years ago
I figured it out. Just putting it here incase someone wants it. I use wb_command to convert the world displacement to ITK format.
convert-dof template_dof.gz testWarp.nii.gz -source ~/dev/MCRIBS/MIRTK/MIRTK/Packages/DrawEM/atlases/non-rigid-v2/T2/template-40.nii.gz
wb_command -convert-warpfield -from-world testWarp.nii.gz -to-itk testWarpITK.nii.gz
Then testWarpITK.nii.gz
warps ~/dev/MCRIBS/MIRTK/MIRTK/Packages/DrawEM/atlases/non-rigid-v2/T2/template-40.nii.gz
to my native image correctly under ANTs.
I would like help converting a dof file produced by register for use in ANTs.
I apply the following command:
I assume this gives the transformation from
$DRAWEMDIR/atlases/non-rigid-v2/T2/template-40.nii.gz
to${OUTPUTPREFIX}_t2w_restore_brain.nii.gz
Because I then use
To register each of the tissue type probability maps to the native image.
My question is how do I convert the dof transform to ANTs format? Specifically, to get the forward and inverse non-linear warps and the affine portion in ITK format? I can't find any examples of how to do this with convert-dof.
Thanks so much in advance.