18 #ifndef itkAddPixelAccessor_h 19 #define itkAddPixelAccessor_h 43 template<
typename TPixel >
59 inline void Set(InternalType & output,
const ExternalType & input)
const 60 { output =
static_cast< InternalType
>( input -
m_Value ); }
63 inline ExternalType
Get(
const InternalType & input)
const 64 {
return static_cast< ExternalType
>( input +
m_Value ); }
void SetValue(const TPixel &newvalue)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
AddPixelAccessor(const Self &apa)
Self & operator=(const Self &apa)
Simulates the effect of adding a constant value to all pixels.
void Set(InternalType &output, const ExternalType &input) const
Define additional traits for native types such as int or float.
ExternalType Get(const InternalType &input) const