Closed azylbertal closed 1 year ago
I was away for the weekend and so am just looking at this. We should probably look at porting similar functionality to ANTsR.
I think this is good to merge. I ran some tests and the command lines look correct with the various options.
Added two optional inputs to
ants.registration
:moving_mask
- a mask that applies to the moving image (default:None
)mask_all_stages
- ifTrue
, mask(s) are applied during all stages of registration (eg Affine and SyN). Otherwise (default) they are only applied at the last stage (usually SyN) as was the original behaviour.Slightly simplified the code for providing masks (or
"NA"
if none is provided) as arguments,