[Insight-users] RegistrationFunctions and Filters

Luis Ibanez luis.ibanez at kitware.com
Wed Sep 24 08:31:54 EDT 2008

Hi Jordi,

You may want to look at the code in:


There is not really a RegistrationFilter in ITK, at least
not for the generic image registration framework.

The closest to it, is the ImageRegistrationMethod class,
that you will see used in most of the examples in the
directory above.

What you want to do is to connect to this class one of
the following metrics:


For a full list of Metrics, please look at:

In the ITK Software Guide


in the "Image Registration" Chapter, you will find many
examples on how to use the registration framework.

Are you looking in particular for a Deformable registration method ?

   Please let us know



Jordi Inglada wrote:
> Dear all,
> I am looking for a working example of a RegistrationFilter using either
> an MIRegistrationFunction or an NCCRegistrationFunction.
> I cannot find any in the Insight examples. 
> I have been struggling with a MIRegistrationFunction and a
> PDEDeformableRegistrationFilter using the
> SetDifferenceFunction( metricFunction ) method, but all I get is a
> segfault.
> I have also tried the CurvatureRegistrationFilter, but the
> MIRegistrationFunction can work with it since it does not have a
> GetMetric method.
> Can anybody give me a hint on this?
> Thank you,
> Jordi

More information about the Insight-users mailing list