[Insight-users] masking capabilities

Luis Ibanez luis.ibanez at kitware.com
Tue, 17 Feb 2004 01:47:41 -0500


Hi Carmen,

Masking capabilities are implemented in the
MeanSquaresImageToImageMetric. You can define
a SpatialObject as mask for the fixed image
an another SpatialObject as mask for the moving
image. Only pixels inside those masks will participate
in the evaluation of the metric.

Look at the methods

   -   SetMovingImageMask()
   -   SetFixedImageMask()

in the base class ImageToImageMetric

http://www.itk.org/Insight/Doxygen/html/classitk_1_1ImageToImageMetric.html


This code has not been heavily tested...
so keep your eyes wide open  :-)

Please let us know if you find any issues.


Thanks


   Luis


------------------------

Carmen Olmos wrote:

> Hi,
>  
> Any news concerning masking capabilities in ImageMetrics?
>  
> Regards,
> Carmen
>