17 #ifndef __itkAbsImageAdaptor_h
18 #define __itkAbsImageAdaptor_h
36 template <
class TInternalType,
class TExternalType >
48 static inline void Set(TInternalType & output,
const TExternalType & input)
49 {output = (TInternalType)(
50 (input > NumericTraits<TExternalType>::Zero) ? input : -input );}
52 static inline TExternalType Get(
const TInternalType & input )
53 {
return (TExternalType) (
54 (input > NumericTraits<TInternalType>::Zero) ? input : -input );}
67 template <
class TImage,
class TOutputPixelType>
70 Accessor::AbsPixelAccessor<
71 typename TImage::PixelType,
78 typename TImage::PixelType,
95 void operator=(
const Self&);