18#ifndef itkNthElementPixelAccessor_h
19#define itkNthElementPixelAccessor_h
55template <
typename T,
typename TContainer>
84 [[nodiscard]]
unsigned int
113template <
typename TOutputPixelType,
typename TPixelType>
145 return Set(v, input);
163 [[nodiscard]]
unsigned int
184 [[nodiscard]] VectorLengthType
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
VectorLengthType GetVectorLength() const
TOutputPixelType ExternalType
NthElementPixelAccessor Self
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
NthElementPixelAccessor(unsigned int length=1)
bool operator==(const Self &accessor) const
void Set(InternalType &output, const ExternalType &input, const SizeValueType offset) const
ExternalType Get(const InternalType &input, const SizeValueType offset) const
DefaultVectorPixelAccessor< TPixelType > Superclass
void Set(ActualPixelType &output, const ExternalType &input) const
VectorLengthType m_ElementNumber
unsigned int GetElementNumber() const
unsigned int VectorLengthType
ExternalType Get(const ActualPixelType &input) const
void SetElementNumber(unsigned int nth)
VariableLengthVector< TPixelType > ActualPixelType
void SetVectorLength(VectorLengthType l)
Give access to the N-th of a Container type.
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)
TOutputPixelType ExternalType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType