ants.build_template transforms in object?See original GitHub issue
Is your feature request related to a problem? Please describe. I used ants.build_template but I can’t seem to find the transforms from the input images to the template in the output object.
For example, when I run:
import ants image1=ants.image_read('/Users/vincent/Data/tmp/sub-A_ses-01_T1w.nii.gz') image2=ants.image_read('/Users/vincent/Data/tmp/sub-A_ses-02_T1w.nii.gz') timage = ants.build_template(image_list = (image1, image2))
I am looking in the timage object for the affine and non-linear transformations, but can’t find them. Should they be present in this object, and if so, under which variable?
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
yes - that is the typical workflow. let’s suppose you have 10,000 images.
build a template from 100 of them, randomly selected
warp all images in the population to the template
does your application fit into this workflow?
Yes, it does. Thanks!