Registration Initialization

Hi all,
I am very new to ITK and I was looking at this notebook
More specifically I see the initialization was done using

initial_transform = sitk.CenteredTransformInitializer(fixed_image,
moving_image,
sitk.Euler3DTransform(),
sitk.CenteredTransformInitializerFilter.GEOMETRY)

How do I go about not using any specific intialization? i.e. using the identity matrix as the initialization?

1 Like

Hello @kekday,

Welcome to ITK and SimpleITK!

When you want to use the identity transformation you just create the transformation:

initial_transform =  sitk.Euler3DTransform()

I would highly recommend setting the transformation center so that the rotation is around the fixed image’s center and not the origin. This greatly improves numerical stability.

3 Likes