ANTsPy icon indicating copy to clipboard operation
ANTsPy copied to clipboard

Creating Templates with Masks

Open FIrgolitsch opened this issue 3 years ago • 1 comments

Hello,

I've been working on getting to know ANTsPy. I was wondering if there is any option to pass masks to the registration function within the ants.build_templates() function. It does have a keyword argument, but that won't allow me to select the right mask for the right image passed to the function.

FIrgolitsch avatar Sep 23 '22 15:09 FIrgolitsch

I think build_templates() is a 1:1 port of the bash antsMultivariateTemplateConstruction2.sh which also doesnt' have masks.

I have a re-implementation that supports masks, lightly tested if you want to give it a try, https://github.com/CoBrALab/optimized_antsMultivariateTemplateConstruction

I can be quick about sorting any bugs that shake out.

gdevenyi avatar Sep 23 '22 15:09 gdevenyi