18#ifndef itkNeighborhoodIterator_h
19#define itkNeighborhoodIterator_h
211template <
typename TImage,
typename TBoundaryCondition = ZeroFluxNeumannBoundaryCondition<TImage>>
228 using typename Superclass::NeighborhoodType;
231 using typename Superclass::ImageBoundaryConditionPointerType;
247 Superclass::operator=(orig);
262 return (this->
operator[]((this->
Size()) >> 1));
269 this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]((this->
Size()) >> 1), p);
293 this->SetPixel(this->GetNeighborhoodIndex(o), v);
304 this->SetPixel(this->GetCenterNeighborhoodIndex() + (i * this->GetStride(axis)), v);
313 this->SetPixel(this->GetCenterNeighborhoodIndex() + this->GetStride(axis), v);
322 this->SetPixel(this->GetCenterNeighborhoodIndex() - (i * this->GetStride(axis)), v);
331 this->SetPixel(this->GetCenterNeighborhoodIndex() - this->GetStride(axis), v);
337#ifndef ITK_MANUAL_INSTANTIATION
338# include "itkNeighborhoodIterator.hxx"
Pixel-wise addition of two images.
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename TImage::RegionType RegionType
typename TImage::InternalPixelType InternalPixelType
typename TImage::PixelType PixelType
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
void SetNext(const unsigned int axis, const unsigned int i, const PixelType &v)
void SetNeighborhood(const NeighborhoodType &)
void SetPixel(const unsigned int i, const PixelType &v)
NeighborhoodIterator(const NeighborhoodIterator &n)
void SetCenterPixel(const PixelType &p)
void SetNext(const unsigned int axis, const PixelType &v)
void SetPrevious(const unsigned int axis, const PixelType &v)
void SetPrevious(const unsigned int axis, const unsigned int i, const PixelType &v)
InternalPixelType * GetCenterPointer()
void SetPixel(const unsigned int i, const PixelType &v, bool &status)
NeighborhoodIterator(const SizeType &radius, ImageType *ptr, const RegionType ®ion)
Self & operator=(const Self &orig)
void SetPixel(const OffsetType o, const PixelType &v)
A light-weight container object for storing an N-dimensional neighborhood of values.
typename AllocatorType::iterator Iterator
typename AllocatorType::const_iterator ConstIterator
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....