Use masks for registration in itk-elastix

Greetings to everyone,

I am discovering itk-elastix in python (module loaded as itk) and I am starting to use itk.elastix_registration_method

I could not find the signature of this function but managed to grab some information from the example notebooks. Thanks a lot for preparing these notebooks.

However, I would like to use masking for my registrations.
Please, can anyone tell me how this is specified in the arguments of itk.elastix_registration_method ?

Best,
Gaël.

Hi Gaël,

Welcome to the ITK community! :sun_with_face:

To use masks with itk-elastix, pass

fixed_mask=fixed_mask, moving_mask=moving_mask,

to itk.elastix_registration_method.

A full example can be found in this notebook.

1 Like

Thank you very much Matt !