[Insight-developers] Registration classes common base class

Luis Ibanez ibanez@choroid.cs.unc.edu
Tue, 10 Apr 2001 17:10:15 -0400 (EDT)


The base class for the Registration methods turned out
not to be so simple.

The problem is caused by the multiple dependencies
between the types in the registration.

They go in the following order in a Makefile style:


Transformation:

Mapper: Transformation, Reference

Metric: Mapper, Target

Optimizer: Metric

RegistrationMethod: Optimizer


The problem is that all the dependencies are defined
by template parameters and setting everything in the
first line of the class declaration of a specific method
looks really overcrowded.

Seems that a possible solution is to use the Traits
as they are used in itkMesh with the DefaultTraits.h


any suggestions ?