18#ifndef itkDefaultVectorPixelAccessor_h
19#define itkDefaultVectorPixelAccessor_h
49template <
typename TType>
68 InternalType * truePixel = (&output) + offset * m_OffsetMultiplier;
72 truePixel[i] = input[i];
82 return ExternalType((&input) + (offset * m_OffsetMultiplier), m_VectorLength);
90 m_OffsetMultiplier = (l - 1);
98 return m_VectorLength;
107 m_OffsetMultiplier = l - 1;
Give access to partial aspects of a type.
DefaultVectorPixelAccessor()=default
DefaultVectorPixelAccessor(VectorLengthType l)
void SetVectorLength(VectorLengthType l)
VectorLengthType GetVectorLength() const
unsigned int VectorLengthType
void Set(InternalType &output, const ExternalType &input, const unsigned long offset) const
ExternalType Get(const InternalType &input, const SizeValueType offset) const
~DefaultVectorPixelAccessor()=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType