[Insight-users] Masks in ImageToImageMetric

Bignalet Francois Francois.Bignalet at stage.cnes.fr
Mon, 3 May 2004 09:51:14 +0200


Hi all!

In itkImageToImageMetric there are 2 masks for the fixed and the moving image. In itkMeanSquareImageToImageMetric , in the method GetValue() it is always checked that the current pixel is in the mask, but it seems like this is not the case in itkMattesMutualInformationImageToImageMetric, that the histograms are computed in the whole image. 

For example if I want to register 2 images with a simple translation, and my translation is half the size of the picture, the other half pixels have a default value. Are these pixels taken into account when mesuring the metric?

Thanks for your answer,
Francois