18 #ifndef itkNeighborhoodIterator_h
19 #define itkNeighborhoodIterator_h
210 template<
typename TImage,
typename TBoundaryCondition =
232 typedef typename Superclass::ImageBoundaryConditionPointerType
244 Superclass::operator=(orig);
256 virtual void PrintSelf(std::ostream &,
Indent)
const;
260 {
return ( this->
operator[]( ( this->
Size() ) >> 1 ) ); }
264 { this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]( ( this->
Size() ) >> 1 ), p); }
269 virtual void SetNeighborhood(
const NeighborhoodType &);
273 virtual void SetPixel(
const unsigned i,
const PixelType & v,
277 virtual void SetPixel(
const unsigned i,
const PixelType & v);
283 { this->SetPixel(this->GetNeighborhoodIndex(o), v); }
290 virtual void SetNext(
const unsigned axis,
const unsigned i,
293 this->SetPixel(this->GetCenterNeighborhoodIndex()
294 + ( i * this->GetStride(axis) ), v);
302 this->SetPixel(this->GetCenterNeighborhoodIndex()
303 + this->GetStride(axis), v);
312 this->SetPixel(this->GetCenterNeighborhoodIndex()
313 - ( i * this->GetStride(axis) ), v);
322 this->SetPixel(this->GetCenterNeighborhoodIndex()
323 - this->GetStride(axis), v);
329 #ifndef ITK_MANUAL_INSTANTIATION
330 #include "itkNeighborhoodIterator.hxx"
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
ImageBaseType::SizeType SizeType
Superclass::Iterator Iterator
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
ImageType::InternalPixelType InternalPixelType
ImageBaseType::IndexType IndexType