18#ifndef itkNthElementPixelAccessor_h
19#define itkNthElementPixelAccessor_h
52template <
typename T,
typename TContainer>
121template <
typename TOutputPixelType,
typename TPixelType>
153 return Set(v, input);
static ComponentType GetNthComponent(int c, const PixelType &pixel)
static void SetNthComponent(int c, PixelType &pixel, const ComponentType &v)
DefaultVectorPixelAccessor()=default
void SetVectorLength(VectorLengthType l)
VectorLengthType GetVectorLength() const
ExternalType Get(const InternalType &input, const SizeValueType offset) const
NthElementPixelAccessor Self
unsigned int VectorLengthType
NthElementPixelAccessor & operator=(const NthElementPixelAccessor &accessor)
void Set(ActualPixelType &output, const ExternalType &input) const
DefaultVectorPixelAccessor< TPixelType > Superclass
ExternalType Get(const ActualPixelType &input) const
VariableLengthVector< TPixelType > ActualPixelType
unsigned int GetElementNumber() const
ExternalType Get(const InternalType &input, const SizeValueType offset) const
TOutputPixelType ExternalType
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
VectorLengthType GetVectorLength() const
VectorLengthType m_ElementNumber
bool operator==(const Self &accessor) const
void SetElementNumber(unsigned int nth)
void Set(InternalType &output, const ExternalType &input, const SizeValueType offset) const
NthElementPixelAccessor(unsigned int length=1)
void SetVectorLength(VectorLengthType l)
NthElementPixelAccessor()
unsigned int m_ElementNumber
NthElementPixelAccessor Self
unsigned int GetElementNumber() const
void Set(InternalType &output, const ExternalType &input) const
ExternalType Get(const InternalType &input) const
bool operator==(const Self &accessor) const
typename TImage::PixelType InternalType
void SetElementNumber(unsigned int nth)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
NthElementPixelAccessor & operator=(const NthElementPixelAccessor &accessor)
TOutputPixelType ExternalType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType