18#ifndef itkNthElementPixelAccessor_h
19#define itkNthElementPixelAccessor_h
52template <
typename T,
typename TContainer>
121template <
typename TOutputPixelType,
typename TPixelType>
153 return Set(v, input);
168 return Get(Superclass::Get(input, offset));
190 Superclass::SetVectorLength(l);
197 return Superclass::GetVectorLength();
217 this->SetVectorLength(accessor.GetVectorLength());
static ComponentType GetNthComponent(int c, const PixelType &pixel)
static void SetNthComponent(int c, PixelType &pixel, const ComponentType &v)
Give access to partial aspects of a type.
unsigned int VectorLengthType
NthElementPixelAccessor & operator=(const NthElementPixelAccessor &accessor)
void Set(ActualPixelType &output, const ExternalType &input) const
void Set(InternalType &output, const ExternalType &input, const unsigned long offset) const
ExternalType Get(const ActualPixelType &input) const
unsigned int GetElementNumber() const
ExternalType Get(const InternalType &input, const SizeValueType offset) const
TOutputPixelType ExternalType
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
VectorLengthType GetVectorLength() const
bool operator==(const Self &accessor) const
void SetElementNumber(unsigned int nth)
NthElementPixelAccessor(unsigned int length=1)
void SetVectorLength(VectorLengthType l)
Give access to the N-th of a Container type.
NthElementPixelAccessor()
unsigned int m_ElementNumber
unsigned int GetElementNumber() const
void Set(InternalType &output, const ExternalType &input) const
ExternalType Get(const InternalType &input) const
bool operator==(const Self &accessor) const
void SetElementNumber(unsigned int nth)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
NthElementPixelAccessor & operator=(const NthElementPixelAccessor &accessor)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType