18 #ifndef itkDefaultVectorPixelAccessor_h
19 #define itkDefaultVectorPixelAccessor_h
49 template<
typename TType >
67 const unsigned long offset)
const
69 InternalType *truePixel = ( &output ) + offset * m_OffsetMultiplier;
73 truePixel[i] = input[i];
82 return ExternalType( ( &input ) + ( offset * m_OffsetMultiplier ), m_VectorLength );
89 m_OffsetMultiplier = ( l - 1 );
102 m_OffsetMultiplier = l - 1;
unsigned long SizeValueType
ExternalType Get(const InternalType &input, const SizeValueType offset) const
unsigned int VectorLengthType
DefaultVectorPixelAccessor(VectorLengthType l)
void SetVectorLength(VectorLengthType l)
Give access to partial aspects of a type.
void Set(InternalType &output, const ExternalType &input, const unsigned long offset) const
Represents an array whose length can be defined at run-time.
VectorLengthType GetVectorLength() const
DefaultVectorPixelAccessor()