18 #ifndef itkNeighborhoodIterator_h
19 #define itkNeighborhoodIterator_h
215 template<
typename TImage,
typename TBoundaryCondition =
238 typedef typename Superclass::ImageBoundaryConditionPointerType
250 Superclass::operator=(orig);
266 {
return ( this->
operator[]( ( this->
Size() ) >> 1 ) ); }
270 { this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]( ( this->
Size() ) >> 1 ), p); }
275 virtual void SetNeighborhood(
const NeighborhoodType &);
279 virtual void SetPixel(
const unsigned i,
const PixelType & v,
283 virtual void SetPixel(
const unsigned i,
const PixelType & v);
289 { this->SetPixel(this->GetNeighborhoodIndex(o), v); }
296 virtual void SetNext(
const unsigned axis,
const unsigned i,
299 this->SetPixel(this->GetCenterNeighborhoodIndex()
300 + ( i * this->GetStride(axis) ), v);
308 this->SetPixel(this->GetCenterNeighborhoodIndex()
309 + this->GetStride(axis), v);
318 this->SetPixel(this->GetCenterNeighborhoodIndex()
319 - ( i * this->GetStride(axis) ), v);
328 this->SetPixel(this->GetCenterNeighborhoodIndex()
329 - this->GetStride(axis), v);
335 #ifndef ITK_MANUAL_INSTANTIATION
336 #include "itkNeighborhoodIterator.hxx"
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetPixel(const OffsetType o, const PixelType &v)
Superclass::SizeType SizeType
virtual void SetPrevious(const unsigned axis, const unsigned i, const PixelType &v)
ImageType::PixelType PixelType
Represent the size (bounds) of a n-dimensional image.
Superclass::PixelType PixelType
A light-weight container object for storing an N-dimensional neighborhood of values.
virtual void SetNext(const unsigned axis, const unsigned i, const PixelType &v)
NeighborhoodIterator(const SizeType &radius, ImageType *ptr, const RegionType ®ion)
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
Superclass::RegionType RegionType
virtual void SetNext(const unsigned axis, const PixelType &v)
Superclass::SizeType SizeType
NeighborhoodIterator(const NeighborhoodIterator &n)
ConstNeighborhoodIterator< TImage, TBoundaryCondition > Superclass
virtual void SetCenterPixel(const PixelType &p)
Superclass::NeighborhoodType NeighborhoodType
Superclass::ConstIterator ConstIterator
Superclass::IndexType IndexType
NeighborhoodIterator Self
Superclass::OffsetType OffsetType
Superclass::RadiusType RadiusType
ImageType::RegionType RegionType
Superclass::ImageBoundaryConditionPointerType ImageBoundaryConditionPointerType
Superclass::InternalPixelType InternalPixelType
Self & operator=(const Self &orig)
AllocatorType::iterator Iterator
InternalPixelType * GetCenterPointer()
virtual void SetPrevious(const unsigned axis, const PixelType &v)
Superclass::ImageType ImageType
Control indentation during Print() invocation.
AllocatorType::const_iterator ConstIterator
Superclass::Iterator Iterator
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
ImageType::InternalPixelType InternalPixelType