How to compute Target Registration Error (TRE) of Rigid Body Registration in SITK?

Hello,

I am trying to find out TRE of 3D Multimodal Rigid Medical Image Registration using metric JointHistogramMutualInformation. The TRE function of SimpleITK takes a list of landmark points from the fixed and moving images, as input parameters.

initial_TRE = utilities.target_registration_errors(sitk.Transform(), fixed_points, moving_points)
final_TRE = utilities.target_registration_errors(final_transformation, fixed_points, moving_points)

How can I generate fixed_points and moving_points in case of rigid registration using Mutual Information?

Hello @debapriya,

The TRE concept is independent from the metric used for registration. To compute TRE you need to obtain pairs of corresponding points in the fixed and moving coordinate systems. Note that these points are not used in the registration process itself. You then use the transformation estimated by the registration process to transform the points from the fixed coordinate system to the moving coordinate system and compute the distance between the transformed point and the actual point in the moving coordinate system (the TRE).

The easiest way to obtain corresponding points is to manually identify them (e.g. the RegistrationPointDataAquisition GUI used in this Jupyter notebook).

1 Like

Thank you @zivy .

gui.RegistrationPointDataAquisition is showing me the corresponding points in the two images.

However, I need the coordinates of the points. How can I get the coordinates?

Hello @debapriya,

Please take a look at the Jupyter notebook that I pointed to in the previous post (hint: the method you are looking for starts with get_p....

Thank you @zivy .
I could get the coordinates from point_acquisition_interface.get_points(). Hope this is the method you hinted.

I have another query.
With point_acquisition_interface.get_points(), we are manually selecting the corresponding points in the two images. However, in 3D images, two consecutive slices can have very similar images. Is there a way to decide which slice gives the correct correspondence with the fixed image?

For example, in the below two figures, both slice 4 and 5 in the moving image have similarity with slice 4 of the fixed image.

Slice 4 of Fixed image and Slice 4 of Moving image

Slice 4 of Fixed image and Slice 5 of Moving image

How can I visually decide which correspondence is correct?

Hello @debapriya,

Generally speaking, accurately and precisely localizing corresponding points in a manual fashion is not easy because anatomical structures are usually smooth, no unique well defined corner points (vessel bifurcations are an exception and are reasonably well defined). This is why fiducials, external markers, are often used.

Having said that, you can use another registration to help with the task of localizing corresponding points changing it from a fully manual process to a semi-automatic one. Local rigid registration is used to refine a coarse manual localization which is then visually verified. This notebook formulates the task - you will need to implement the solution.

This paper discusses the approach and may also be helpful.