14 #ifndef __itkSpatiallyDenseSparseVectorImagePixelAccessor_h 15 #define __itkSpatiallyDenseSparseVectorImagePixelAccessor_h 18 #include "itkVariableLengthVector.h" 20 #include "itkIntTypes.h" 42 template <
class TValueType,
class TKeyType>
58 inline void Set(InternalType & output,
59 const ExternalType & input,
60 const SizeValueType offset)
const 63 for ( VectorLengthType i = 0; i < m_VectorLength; i++ )
73 inline ExternalType
Get(
const InternalType & input,
74 const SizeValueType offset)
const 77 pixel.SetSize(m_VectorLength);
79 for ( VectorLengthType i = 0; i < m_VectorLength; i++ )
100 m_VectorLength = length;
110 VectorLengthType length)
112 m_FillBufferValue = fillBufferValue;
113 m_VectorLength = length;
119 ExternalType m_FillBufferValue;
void Set(InternalType &output, const ExternalType &input, const SizeValueType offset) const
virtual ~SpatiallyDenseSparseVectorImagePixelAccessor()
SparseVector< TValueType, TKeyType > InternalType
void SetVectorLength(VectorLengthType length)
Represents a sparse array.
VectorLengthType m_VectorLength
unsigned long VectorLengthType
Give access to partial aspects of a type.
SpatiallyDenseSparseVectorImagePixelAccessor()
ExternalType Get(const InternalType &input, const SizeValueType offset) const
VectorLengthType GetVectorLength() const
VariableLengthVector< TValueType > ExternalType
SpatiallyDenseSparseVectorImagePixelAccessor(ExternalType fillBufferValue, VectorLengthType length)