18 #ifndef itkNeighborhoodIterator_h
19 #define itkNeighborhoodIterator_h
210 template<
typename TImage,
typename TBoundaryCondition =
243 Superclass::operator=(orig);
255 void PrintSelf(std::ostream &,
Indent)
const;
259 {
return ( this->
operator[]( ( this->
Size() ) >> 1 ) ); }
263 { this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]( ( this->
Size() ) >> 1 ), p); }
268 ITK_ITERATOR_VIRTUAL
void SetNeighborhood(
const NeighborhoodType &) ITK_ITERATOR_FINAL;
272 ITK_ITERATOR_VIRTUAL
void SetPixel(const
unsigned i, const PixelType & v,
273 bool & status) ITK_ITERATOR_FINAL;
276 ITK_ITERATOR_VIRTUAL
void SetPixel(const
unsigned i, const PixelType & v) ITK_ITERATOR_FINAL;
282 { this->SetPixel(this->GetNeighborhoodIndex(o), v); }
289 ITK_ITERATOR_VIRTUAL
void SetNext(
const unsigned axis,
const unsigned i,
292 this->SetPixel(this->GetCenterNeighborhoodIndex()
293 + ( i * this->GetStride(axis) ), v);
299 ITK_ITERATOR_VIRTUAL
void SetNext(
const unsigned axis,
const PixelType & v) ITK_ITERATOR_FINAL
301 this->SetPixel(this->GetCenterNeighborhoodIndex()
302 + this->GetStride(axis), v);
308 ITK_ITERATOR_VIRTUAL
void SetPrevious(
const unsigned axis,
const unsigned i,
311 this->SetPixel(this->GetCenterNeighborhoodIndex()
312 - ( i * this->GetStride(axis) ), v);
321 this->SetPixel(this->GetCenterNeighborhoodIndex()
322 - this->GetStride(axis), v);
328 #ifndef ITK_MANUAL_INSTANTIATION
329 #include "itkNeighborhoodIterator.hxx"
typename Superclass::OffsetType OffsetType
typename ImageType::InternalPixelType InternalPixelType
A light-weight container object for storing an N-dimensional neighborhood of values.
typename AllocatorType::iterator Iterator
NeighborhoodIterator(const SizeType &radius, ImageType *ptr, const RegionType ®ion)
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename ImageType::PixelType PixelType
ITK_ITERATOR_VIRTUAL void SetCenterPixel(const PixelType &p) ITK_ITERATOR_FINAL
typename AllocatorType::const_iterator ConstIterator
typename Superclass::SizeType SizeType
NeighborhoodIterator(const NeighborhoodIterator &n)
ImageBaseType::SizeType SizeType
ImageBaseType::IndexType IndexType
Represent a n-dimensional size (bounds) of a n-dimensional image.
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image...
ITK_ITERATOR_VIRTUAL void SetNext(const unsigned axis, const PixelType &v) ITK_ITERATOR_FINAL
typename Superclass::ConstIterator ConstIterator
typename ImageType::RegionType RegionType
typename Superclass::Iterator Iterator
Self & operator=(const Self &orig)
InternalPixelType * GetCenterPointer()
Control indentation during Print() invocation.
ITK_ITERATOR_VIRTUAL void SetNext(const unsigned axis, const unsigned i, const PixelType &v) ITK_ITERATOR_FINAL
typename Superclass::RadiusType RadiusType
ITK_ITERATOR_VIRTUAL void SetPrevious(const unsigned axis, const unsigned i, const PixelType &v) ITK_ITERATOR_FINAL
ImageBaseType::RegionType RegionType
ITK_ITERATOR_VIRTUAL void SetPrevious(const unsigned axis, const PixelType &v) ITK_ITERATOR_FINAL
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.