Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a slightly more flexible use of masks #450

Merged
merged 2 commits into from
Apr 20, 2023

Conversation

azylbertal
Copy link
Contributor

  • Added two optional inputs to ants.registration:

    • moving_mask - a mask that applies to the moving image (default: None)
    • mask_all_stages - if True, 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,

@stnava stnava requested a review from cookpa April 14, 2023 13:11
@ntustison
Copy link
Member

I was away for the weekend and so am just looking at this. We should probably look at porting similar functionality to ANTsR.

@cookpa
Copy link
Member

cookpa commented Apr 19, 2023

I think this is good to merge. I ran some tests and the command lines look correct with the various options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Masking for the linear transformation (and for the moving image)
3 participants