Closed curiale closed 4 months ago
I think that this is a good idea. The issue is that itk is extremely slow to import, so we want to avoid loading it when icon_registration is imported for a non-itk task, just to improve developer experience. Maybe we could also move the itk import into the register_pair function body?
GradICON requires itk_wrapper.
File ".../GradICON_Det/determinant_helper.py", line 276, in register_pair_mask icon.itk_wrapper.create_itk_transform(phi_AB, model.identity_map, image_A, image_B), AttributeError: module 'icon_registration' has no attribute ‘itk_wrapper’