18 #ifndef itkConstNeighborhoodIteratorWithOnlyIndex_h
19 #define itkConstNeighborhoodIteratorWithOnlyIndex_h
59 template<
typename TImage >
108 Self & operator=(
const Self & orig);
111 virtual void PrintSelf(std::ostream &,
Indent)
const;
115 OffsetType ComputeInternalIndex(NeighborIndexType n)
const;
147 return ( this->GetIndex() + o );
154 return ( this->GetIndex() + this->GetOffset(i) );
172 RegionType GetBoundingBoxAsImageRegion()
const;
177 virtual void GoToBegin();
181 virtual void GoToEnd();
185 virtual void Initialize(
const SizeType & radius,
const ImageType *ptr,
const RegionType & region);
191 return ( this->GetIndex() == m_BeginIndex );
196 virtual bool IsAtEnd()
const;
215 return it.
GetIndex() == this->GetIndex();
223 return it.
GetIndex() != this->GetIndex();
231 bool operator<(
const Self & it)
const;
238 bool operator<=(
const Self & it)
const;
245 bool operator>(
const Self & it)
const;
252 bool operator>=(
const Self & it)
const;
260 this->SetLoop(position);
266 Self & operator+=(
const OffsetType &);
271 Self & operator-=(
const OffsetType &);
282 bool InBounds()
const;
295 bool IndexInBounds(
const NeighborIndexType n, OffsetType & internalIndex, OffsetType & offset )
const;
300 this->SetNeedToUseBoundaryCondition(
true);
305 this->SetNeedToUseBoundaryCondition(
false);
310 m_NeedToUseBoundaryCondition = b;
315 return m_NeedToUseBoundaryCondition;
324 m_Loop = p; m_IsInBoundsValid =
false;
330 virtual void SetBound(
const SizeType &);
336 m_BeginIndex = start;
341 virtual void SetEndIndex();
385 template<
typename TImage >
397 template<
typename TImage >
398 inline ConstNeighborhoodIteratorWithOnlyIndex< TImage >
402 {
return ( it + ind ); }
404 template<
typename TImage >
405 inline ConstNeighborhoodIteratorWithOnlyIndex< TImage >
417 #ifndef ITK_MANUAL_INSTANTIATION
418 #include "itkConstNeighborhoodIteratorWithOnlyIndex.hxx"
ConstNeighborhoodIterator< TImage > operator-(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
Superclass::SizeType SizeType
OffsetType operator-(const Self &b)
A light-weight container object for storing an N-dimensional neighborhood of values.
TImage::RegionType RegionType
signed long IndexValueType
Index-only version of ConstNeighborhoodIterator, defining iteration of a local N-dimensional neighbor...
RegionType GetRegion() const
ImageType::ConstPointer m_ConstImage
void NeedToUseBoundaryConditionOff()
IndexType GetBeginIndex() const
Superclass::ConstIterator ConstIterator
virtual IndexType GetIndex(const OffsetType &o) const
Superclass::RadiusType RadiusType
bool GetNeedToUseBoundaryCondition() const
Neighborhood< DummyNeighborhoodPixelType, itkGetStaticConstMacro(Dimension) > NeighborhoodType
unsigned int DimensionValueType
Superclass::OffsetType OffsetType
virtual IndexType GetIndex(void) const
virtual IndexType GetIndex(NeighborIndexType i) const
IndexType m_InnerBoundsLow
virtual ~ConstNeighborhoodIteratorWithOnlyIndex()
void SetLocation(const IndexType &position)
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
const ImageType * GetImagePointer(void) const
Index< itkGetStaticConstMacro(Dimension) > IndexType
const unsigned int Dimension
void SetNeedToUseBoundaryCondition(bool b)
Superclass::Iterator Iterator
NeighborhoodType::NeighborIndexType NeighborIndexType
virtual void SetBeginIndex(const IndexType &start)
AllocatorType::iterator Iterator
bool operator==(const Self &it) const
Neighborhood< DummyNeighborhoodPixelType, itkGetStaticConstMacro(Dimension) > Superclass
virtual void SetLoop(const IndexType &p)
bool m_NeedToUseBoundaryCondition
void NeedToUseBoundaryConditionOn()
Control indentation during Print() invocation.
ConstNeighborhoodIteratorWithOnlyIndex Self
AllocatorType::const_iterator ConstIterator
IndexType m_InnerBoundsHigh
ImageBaseType::SizeType SizeType
bool operator!=(const Self &it) const
char DummyNeighborhoodPixelType
IndexValueType GetBound(NeighborIndexType n) const
virtual bool IsAtBegin() const
IndexType GetBound() const
SizeValueType NeighborIndexType