|
ITK
5.1.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNeighborhoodIterator_h
19 #define itkNeighborhoodIterator_h
210 template <
typename TImage,
typename TBoundaryCondition = ZeroFluxNeumannBoundaryCondition<TImage>>
246 Superclass::operator=(orig);
259 PrintSelf(std::ostream &,
Indent)
const override;
265 return (this->
operator[]((this->
Size()) >> 1));
269 ITK_ITERATOR_VIRTUAL
void
272 this->m_NeighborhoodAccessorFunctor.Set(this->
operator[]((this->
Size()) >> 1), p);
278 ITK_ITERATOR_VIRTUAL
void
279 SetNeighborhood(
const NeighborhoodType &) ITK_ITERATOR_FINAL;
283 ITK_ITERATOR_VIRTUAL
void
284 SetPixel(
const unsigned i,
const PixelType & v,
bool & status) ITK_ITERATOR_FINAL;
287 ITK_ITERATOR_VIRTUAL
void
288 SetPixel(
const unsigned i,
const PixelType & v) ITK_ITERATOR_FINAL;
293 ITK_ITERATOR_VIRTUAL
void
296 this->SetPixel(this->GetNeighborhoodIndex(o), v);
304 ITK_ITERATOR_VIRTUAL
void
307 this->SetPixel(this->GetCenterNeighborhoodIndex() + (i * this->GetStride(axis)), v);
313 ITK_ITERATOR_VIRTUAL
void
316 this->SetPixel(this->GetCenterNeighborhoodIndex() + this->GetStride(axis), v);
322 ITK_ITERATOR_VIRTUAL
void
325 this->SetPixel(this->GetCenterNeighborhoodIndex() - (i * this->GetStride(axis)), v);
331 ITK_ITERATOR_VIRTUAL
void
334 this->SetPixel(this->GetCenterNeighborhoodIndex() - this->GetStride(axis), v);
340 #ifndef ITK_MANUAL_INSTANTIATION
341 # 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()