14 #ifndef __itkSpatiallyDenseSparseVectorImageNeighborhoodAccessorFunctor_h 15 #define __itkSpatiallyDenseSparseVectorImageNeighborhoodAccessorFunctor_h 17 #include "itkImageBoundaryCondition.h" 18 #include "itkNeighborhood.h" 19 #include "itkImageBase.h" 20 #include "itkNumericTraits.h" 35 template<
class TImage >
45 typedef Neighborhood< InternalPixelType *, TImage::ImageDimension>
48 typedef ImageBoundaryCondition< ImageType >
const 52 PixelType fillBufferValue , VectorLengthType length)
70 inline void SetBegin(
const InternalPixelType * begin )
71 { this->
m_Begin =
const_cast< InternalPixelType *
>( begin ); }
80 inline PixelType
Get(
const InternalPixelType *pixelPointer )
const 85 const typename InternalPixelType::InternalDataType *map =
86 pixelPointer->GetDataPointer();
90 typename InternalPixelType::InternalDataType::const_iterator it = map->find( i );
92 if ( it == map->end() )
98 pixel[i] = it->second;
106 inline void Set( InternalPixelType* &pixelPointer,
const PixelType &p )
const 108 typename InternalPixelType::InternalDataType *map =
109 pixelPointer->GetDataPointer();
123 const OffsetType& point_index,
124 const OffsetType &boundary_offset,
128 return boundaryCondition->operator()(point_index, boundary_offset, data, *
this);
PixelType BoundaryCondition(const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data, const ImageBoundaryConditionConstPointerType boundaryCondition) const
void SetBegin(const InternalPixelType *begin)
unsigned int VectorLengthType
ImageType::InternalPixelType InternalPixelType
ImageType::PixelType PixelType
ImageBoundaryCondition< ImageType > const * ImageBoundaryConditionConstPointerType
ImageType::OffsetType OffsetType
InternalPixelType * m_Begin
SpatiallyDenseSparseVectorImageNeighborhoodAccessorFunctor(PixelType fillBufferValue, VectorLengthType length)
void SetVectorLength(VectorLengthType length)
PixelType m_FillBufferValue
SpatiallyDenseSparseVectorImageNeighborhoodAccessorFunctor()
VectorLengthType m_VectorLength
PixelType Get(const InternalPixelType *pixelPointer) const
void Set(InternalPixelType *&pixelPointer, const PixelType &p) const
Neighborhood< InternalPixelType *, TImage::ImageDimension > NeighborhoodType
VectorLengthType GetVectorLength()
Provides accessor interfaces to Access pixels and is meant to be used on pointers to pixels held by t...