[Insight-developers] RE: Metrics: Removing some template parameters
Luis Ibanez
luis.ibanez@kitware.com
Tue, 19 Feb 2002 15:35:17 -0500
That's right !
Transforms are now templated over:
1- TScalarType (that now will be only the "representation" type)
2- int Dimension of the InputSpace
3- int Dimension of the OutputSpace
4- TParameters
5- TJacobian
(1) As we decided on the meeting the internal computation type
will be "double" and the "TScalarType" will be used for
representation ... like : itk::Point<TScalarType,dim>
(2) and (3) seems to be neecesary because input and output
itk::Point<> are templated over dimension.
(4) and (5) could be removed is we agree to pack them in
std::vector<double>.... (or something equivalent).
That will reduce the itk::Transform<> to be templated over:
1) Representation type (double/float)
2) Dimension of input space
3) Dimension of output space
Is that reasonable ?
Luis
-------------------------------------------
Lydia Ng wrote:
>>With this changes, Metrics will be templated only over the
>>Moving/Fixed Image types and will plug in Interpolators and
>>Transforms at runtime.
>>
>
>De-templating the Transform classes needs to occur at the same
>time to make things work.
>Might it be easier to start with Transform classes first?
>
>-Lydia
>