18#ifndef itkConstNeighborhoodIteratorWithOnlyIndex_h
19#define itkConstNeighborhoodIteratorWithOnlyIndex_h
59template <
typename TImage>
152 return (this->GetIndex() + o);
160 return (this->GetIndex() + this->GetOffset(i));
184 ITK_ITERATOR_VIRTUAL
void
189 ITK_ITERATOR_VIRTUAL
void
190 GoToEnd() ITK_ITERATOR_FINAL;
194 ITK_ITERATOR_VIRTUAL
void
199 ITK_ITERATOR_VIRTUAL
bool
200 IsAtBegin() const ITK_ITERATOR_FINAL
202 return (this->GetIndex() == m_BeginIndex);
207 ITK_ITERATOR_VIRTUAL
bool
228 operator==(const
Self & it)
const
230 return it.
GetIndex() == this->GetIndex();
274 this->SetLoop(position);
320 this->SetNeedToUseBoundaryCondition(
true);
326 this->SetNeedToUseBoundaryCondition(
false);
332 m_NeedToUseBoundaryCondition = b;
338 return m_NeedToUseBoundaryCondition;
344 ITK_ITERATOR_VIRTUAL
void
348 m_IsInBoundsValid =
false;
354 ITK_ITERATOR_VIRTUAL
void
359 ITK_ITERATOR_VIRTUAL
void
362 m_BeginIndex = start;
367 ITK_ITERATOR_VIRTUAL
void
395 mutable bool m_IsInBounds{
false };
400 mutable bool m_IsInBoundsValid{
false };
409 bool m_NeedToUseBoundaryCondition{
false };
412template <
typename TImage>
413inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
423template <
typename TImage>
424inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
431template <
typename TImage>
432inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
443#ifndef ITK_MANUAL_INSTANTIATION
444# include "itkConstNeighborhoodIteratorWithOnlyIndex.hxx"
Pixel-wise addition of two images.
Index-only version of ConstNeighborhoodIterator, defining iteration of a local N-dimensional neighbor...
bool GetNeedToUseBoundaryCondition() const
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self)
ConstNeighborhoodIteratorWithOnlyIndex()=default
RegionType GetBoundingBoxAsImageRegion() const
void SetLocation(const IndexType &position)
ITK_ITERATOR_VIRTUAL void SetEndIndex() ITK_ITERATOR_FINAL
void NeedToUseBoundaryConditionOff()
OffsetType operator-(const Self &b) const
const ImageType * GetImagePointer() const
Self & operator-=(const OffsetType &)
ITK_ITERATOR_VIRTUAL void SetBound(const SizeType &) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL void GoToBegin() ITK_ITERATOR_FINAL
bool operator>=(const Self &it) const
ConstNeighborhoodIteratorWithOnlyIndex(const SizeType &radius, const ImageType *ptr, const RegionType ®ion)
ITK_ITERATOR_VIRTUAL bool IsAtEnd() const ITK_ITERATOR_FINAL
IndexType GetBound() const
IndexValueType GetBound(NeighborIndexType n) const
ITK_ITERATOR_VIRTUAL IndexType GetIndex() const ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL IndexType GetIndex(NeighborIndexType i) const ITK_ITERATOR_FINAL
bool IndexInBounds(const NeighborIndexType n, OffsetType &internalIndex, OffsetType &offset) const
IndexType GetBeginIndex() const
void SetNeedToUseBoundaryCondition(bool b)
ITK_ITERATOR_VIRTUAL IndexType GetIndex(const OffsetType &o) const ITK_ITERATOR_FINAL
char DummyNeighborhoodPixelType
ITK_ITERATOR_VIRTUAL void SetBeginIndex(const IndexType &start) ITK_ITERATOR_FINAL
OffsetType ComputeInternalIndex(NeighborIndexType n) const
typename NeighborhoodType::NeighborIndexType NeighborIndexType
void PrintSelf(std::ostream &, Indent) const override
RegionType GetRegion() const
ConstNeighborhoodIteratorWithOnlyIndex(const ConstNeighborhoodIteratorWithOnlyIndex &)
bool operator>(const Self &it) const
Self & operator+=(const OffsetType &)
typename TImage::RegionType RegionType
void NeedToUseBoundaryConditionOn()
~ConstNeighborhoodIteratorWithOnlyIndex() override=default
Self & operator=(const Self &orig)
ITK_ITERATOR_VIRTUAL void SetLoop(const IndexType &p) ITK_ITERATOR_FINAL
unsigned int DimensionValueType
Control indentation during Print() invocation.
A light-weight container object for storing an N-dimensional neighborhood of values.
typename AllocatorType::iterator Iterator
SizeValueType NeighborIndexType
typename AllocatorType::const_iterator ConstIterator
SmartPointer< const Self > ConstPointer
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
constexpr unsigned int Dimension
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
bool operator<=(const Index< VDimension > &one, const Index< VDimension > &two)
ConstNeighborhoodIterator< TImage > operator-(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
bool operator<(const Index< VDimension > &one, const Index< VDimension > &two)