14 #ifndef __itkSpatiallyDenseSparseVectorImagePixelAccessorFunctor_h 15 #define __itkSpatiallyDenseSparseVectorImagePixelAccessorFunctor_h 39 template <
class TImageType >
56 m_PixelAccessor = accessor;
60 inline void SetBegin(
const InternalPixelType * begin )
62 this->m_Begin =
const_cast< InternalPixelType *
>( begin );
66 inline void Set( InternalPixelType & output,
const ExternalPixelType &input )
const 68 m_PixelAccessor.Set( output, input, (&output)-m_Begin );
72 inline ExternalPixelType
Get(
const InternalPixelType &input )
const 74 return m_PixelAccessor.Get( input, (&input)-m_Begin );
80 image->SetVectorLength(length);
86 return image->GetVectorLength();
ExternalPixelType Get(const InternalPixelType &input) const
unsigned int VectorLengthType
void Set(InternalPixelType &output, const ExternalPixelType &input) const
void SetBegin(const InternalPixelType *begin)
ImageType::PixelType ExternalPixelType
Provides accessor interfaces to Access pixels and is meant to be used by iterators.
PixelAccessorType m_PixelAccessor
static VectorLengthType GetVectorLength(const ImageType *image)
ImageType::InternalPixelType InternalPixelType
InternalPixelType * m_Begin
void SetPixelAccessor(PixelAccessorType &accessor)
static void SetVectorLength(ImageType *image, VectorLengthType length)
ImageType::AccessorType PixelAccessorType