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;
ExternalType Get(const InternalType &input, const SizeValueType offset) const
VectorLengthType m_VectorLength
DefaultVectorPixelAccessor(VectorLengthType l)
unsigned long SizeValueType
void SetVectorLength(VectorLengthType l)
Give access to partial aspects of a type.
VariableLengthVector< TType > ExternalType
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
virtual ~DefaultVectorPixelAccessor()
unsigned int VectorLengthType
DefaultVectorPixelAccessor()
VectorLengthType m_OffsetMultiplier