Measure Image Similarity Before Registration

Hello everyone,

I need to measure the similarity between two images based on a transform. I have an affine transform already stored on the system and then, I would like to use this transform with the MattesMutualInformation to check how good is the alignment between the fixed and the moving image. This verification intends to decide, in runtime, if there is a need to run a registration task to get another transform.

I found on the documentation the MattesMutualInformationImageToImageMetric method. All the examples that use this method perform registration and then get the metrics.

How can I get the metrics based on a transform before registering the images with ITK?


Hello @PauloFavero ,

This example shows how to compute a similarity metric between two images:

1 Like