|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNeighborhoodIterator_h
19 #define itkNeighborhoodIterator_h
211 template <
typename TImage,
typename TBoundaryCondition = ZeroFluxNeumannBoundaryCondition<TImage>>
247 Superclass::operator=(orig);
260 PrintSelf(std::ostream &,
Indent)
const override;
266 return (this->
operator[]((this->
Size()) >> 1));
270 ITK_ITERATOR_VIRTUAL
void
273 this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]((this->
Size()) >> 1), p);
279 ITK_ITERATOR_VIRTUAL
void
280 SetNeighborhood(
const NeighborhoodType &) ITK_ITERATOR_FINAL;
284 ITK_ITERATOR_VIRTUAL
void
285 SetPixel(
const unsigned i,
const PixelType & v,
bool & status) ITK_ITERATOR_FINAL;
288 ITK_ITERATOR_VIRTUAL
void
289 SetPixel(
const unsigned i,
const PixelType & v) ITK_ITERATOR_FINAL;
294 ITK_ITERATOR_VIRTUAL
void
297 this->SetPixel(this->GetNeighborhoodIndex(o), v);
305 ITK_ITERATOR_VIRTUAL
void
308 this->SetPixel(this->GetCenterNeighborhoodIndex() + (i * this->GetStride(axis)), v);
314 ITK_ITERATOR_VIRTUAL
void
317 this->SetPixel(this->GetCenterNeighborhoodIndex() + this->GetStride(axis), v);
323 ITK_ITERATOR_VIRTUAL
void
326 this->SetPixel(this->GetCenterNeighborhoodIndex() - (i * this->GetStride(axis)), v);
332 ITK_ITERATOR_VIRTUAL
void
335 this->SetPixel(this->GetCenterNeighborhoodIndex() - this->GetStride(axis), v);
341 #ifndef ITK_MANUAL_INSTANTIATION
342 # include "itkNeighborhoodIterator.hxx"
ITK_ITERATOR_VIRTUAL void SetPrevious(const unsigned axis, const unsigned i, const PixelType &v) ITK_ITERATOR_FINAL
typename Superclass::RadiusType RadiusType
Represent a n-dimensional size (bounds) of a n-dimensional image.
typename ImageType ::PixelType PixelType
ITK_ITERATOR_VIRTUAL void SetPrevious(const unsigned axis, const PixelType &v) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void SetNext(const unsigned axis, const unsigned i, const PixelType &v) ITK_ITERATOR_FINAL
NeighborhoodIterator(const SizeType &radius, ImageType *ptr, const RegionType ®ion)
A light-weight container object for storing an N-dimensional neighborhood of values.
ImageBaseType::SizeType SizeType
Self & operator=(const Self &orig)
Control indentation during Print() invocation.
ImageBaseType::IndexType IndexType
NeighborhoodIterator(const NeighborhoodIterator &n)
typename ImageType ::InternalPixelType InternalPixelType
ImageBaseType::RegionType RegionType
typename AllocatorType::iterator Iterator
typename AllocatorType::const_iterator ConstIterator
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image.
ITK_ITERATOR_VIRTUAL void SetCenterPixel(const PixelType &p) ITK_ITERATOR_FINAL
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
typename ImageType ::RegionType RegionType
ITK_ITERATOR_VIRTUAL void SetPixel(const OffsetType o, const PixelType &v) ITK_ITERATOR_FINAL
typename Superclass::ConstIterator ConstIterator
typename Superclass::OffsetType OffsetType
typename Superclass::Iterator Iterator
ITK_ITERATOR_VIRTUAL void SetNext(const unsigned axis, const PixelType &v) ITK_ITERATOR_FINAL
typename Superclass::SizeType SizeType
InternalPixelType * GetCenterPointer()