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));
266 ITK_ITERATOR_VIRTUAL
void
269 this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]((this->
Size()) >> 1), p);
275 ITK_ITERATOR_VIRTUAL
void
280 ITK_ITERATOR_VIRTUAL
void
284 ITK_ITERATOR_VIRTUAL
void
290 ITK_ITERATOR_VIRTUAL
void
293 this->SetPixel(this->GetNeighborhoodIndex(o), v);
301 ITK_ITERATOR_VIRTUAL
void
302 SetNext(
const unsigned int axis,
const unsigned int i,
const PixelType & v) ITK_ITERATOR_FINAL
304 this->SetPixel(this->GetCenterNeighborhoodIndex() + (i * this->GetStride(axis)), v);
310 ITK_ITERATOR_VIRTUAL
void
313 this->SetPixel(this->GetCenterNeighborhoodIndex() + this->GetStride(axis), v);
319 ITK_ITERATOR_VIRTUAL
void
322 this->SetPixel(this->GetCenterNeighborhoodIndex() - (i * this->GetStride(axis)), v);
328 ITK_ITERATOR_VIRTUAL
void
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.
ITK_ITERATOR_VIRTUAL void SetPrevious(const unsigned int axis, const unsigned int i, const PixelType &v) ITK_ITERATOR_FINAL
NeighborhoodIterator(const NeighborhoodIterator &n)
ITK_ITERATOR_VIRTUAL void SetNeighborhood(const NeighborhoodType &) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void SetCenterPixel(const PixelType &p) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void SetPrevious(const unsigned int axis, const PixelType &v) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void SetPixel(const OffsetType o, const PixelType &v) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void SetNext(const unsigned int axis, const unsigned int i, const PixelType &v) ITK_ITERATOR_FINAL
InternalPixelType * GetCenterPointer()
NeighborhoodIterator(const SizeType &radius, ImageType *ptr, const RegionType ®ion)
ITK_ITERATOR_VIRTUAL void SetPixel(const unsigned int i, const PixelType &v, bool &status) ITK_ITERATOR_FINAL
Self & operator=(const Self &orig)
ITK_ITERATOR_VIRTUAL void SetPixel(const unsigned int i, const PixelType &v) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void SetNext(const unsigned int axis, const PixelType &v) ITK_ITERATOR_FINAL
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....