[Insight-developers] TComputation type removed from filters

Luis Ibanez luis.ibanez@kitware.com
Wed, 24 Apr 2002 22:22:54 -0400


Hi,

As we discussed at the UNC meeing,
the "TComputation" template parameter that was used in some
filters has been removed.

It is replaced in general by the following type "RealType":

typedef typename TInputImage::PixelType InputPixelType;
typedef typename NumericTraits<InputPixelType>::RealType RealType;


In the case of the GradientToMagnitudFilter, the pixel type of
the input is  Vector<> so an additional type is required to get the
component type:

typedef typename TInputImage::PixelType InputPixelType;
typedef typename InputPixelType::ValueType InputValueType;
typedef typename NumericTraits<InputValueType>::RealType RealType;


Also the Output type of these filters has now a default type for
the template parameters.   The same rest to be done for the
other filters.


   Luis