18 #ifndef itkNthElementPixelAccessor_h
19 #define itkNthElementPixelAccessor_h
51 template<
typename T,
typename TContainer >
107 template<
typename TOutputPixelType,
typename TPixelType >
132 const unsigned long offset)
const
138 return Set( v, input );
151 return Get( Superclass::Get(input, offset) );
166 Superclass::SetVectorLength( l );
175 Superclass::SetVectorLength( length );
189 this->SetVectorLength( accessor.GetVectorLength() );
void Set(InternalType &output, const ExternalType &input) const
static void SetNthComponent(int c, PixelType &pixel, const ComponentType &v)
void SetVectorLength(VectorLengthType l)
VectorLengthType GetVectorLength() const
NthElementPixelAccessor & operator=(const NthElementPixelAccessor &accessor)
unsigned long SizeValueType
unsigned int VectorLengthType
bool operator!=(const Self &accessor) const
NthElementPixelAccessor()
NthElementPixelAccessor & operator=(const NthElementPixelAccessor &accessor)
void SetElementNumber(unsigned int nth)
static ComponentType GetNthComponent(int c, const PixelType &pixel)
Give access to partial aspects of a type.
unsigned int GetElementNumber() const
Represents an array whose length can be defined at run-time.
NthElementPixelAccessor(unsigned int length=1)
ExternalType Get(const InternalType &input) const
bool operator!=(const Self &accessor) const
ExternalType Get(const ActualPixelType &input) const
void SetElementNumber(unsigned int nth)
unsigned int GetElementNumber() const
void Set(InternalType &output, const ExternalType &input, const unsigned long offset) const
void Set(ActualPixelType &output, const ExternalType &input) const
TOutputPixelType ExternalType
Give access to the N-th of a Container type.
unsigned int m_ElementNumber
ExternalType Get(const InternalType &input, const SizeValueType offset) const