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