|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkConstNeighborhoodIteratorWithOnlyIndex_h
19 #define itkConstNeighborhoodIteratorWithOnlyIndex_h
59 template <
typename TImage>
106 operator=(
const Self & orig);
110 PrintSelf(std::ostream &,
Indent)
const override;
152 return (this->GetIndex() + o);
160 return (this->GetIndex() + this->GetOffset(i));
181 GetBoundingBoxAsImageRegion()
const;
184 ITK_ITERATOR_VIRTUAL
void
185 GoToBegin() ITK_ITERATOR_FINAL;
189 ITK_ITERATOR_VIRTUAL
void
190 GoToEnd() ITK_ITERATOR_FINAL;
194 ITK_ITERATOR_VIRTUAL
void
195 Initialize(const
SizeType & radius, const ImageType * ptr, const
RegionType & region) ITK_ITERATOR_FINAL;
199 ITK_ITERATOR_VIRTUAL
bool
200 IsAtBegin() const ITK_ITERATOR_FINAL
202 return (this->GetIndex() == m_BeginIndex);
207 ITK_ITERATOR_VIRTUAL
bool
208 IsAtEnd() const ITK_ITERATOR_FINAL;
228 operator==(const
Self & it)
const
230 return it.GetIndex() == this->GetIndex();
239 return it.
GetIndex() != this->GetIndex();
281 this->SetLoop(position);
288 operator+=(
const OffsetType &);
294 operator-=(
const OffsetType &);
321 IndexInBounds(
const NeighborIndexType n, OffsetType & internalIndex, OffsetType & offset)
const;
327 this->SetNeedToUseBoundaryCondition(
true);
333 this->SetNeedToUseBoundaryCondition(
false);
339 m_NeedToUseBoundaryCondition = b;
345 return m_NeedToUseBoundaryCondition;
351 ITK_ITERATOR_VIRTUAL
void
355 m_IsInBoundsValid =
false;
361 ITK_ITERATOR_VIRTUAL
void
362 SetBound(
const SizeType &) ITK_ITERATOR_FINAL;
366 ITK_ITERATOR_VIRTUAL
void
369 m_BeginIndex = start;
374 ITK_ITERATOR_VIRTUAL
void
375 SetEndIndex() ITK_ITERATOR_FINAL;
402 mutable
bool m_IsInBounds;
407 mutable
bool m_IsInBoundsValid;
416 bool m_NeedToUseBoundaryCondition;
419 template <typename TImage>
430 template <
typename TImage>
431 inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
438 template <
typename TImage>
439 inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
450 #ifndef ITK_MANUAL_INSTANTIATION
451 # include "itkConstNeighborhoodIteratorWithOnlyIndex.hxx"
OffsetType operator-(const Self &b)
bool operator<(const Index< VDimension > &one, const Index< VDimension > &two)
bool operator<=(const Index< VDimension > &one, const Index< VDimension > &two)
Represent a n-dimensional size (bounds) of a n-dimensional image.
ITK_ITERATOR_VIRTUAL IndexType GetIndex() const ITK_ITERATOR_FINAL
RegionType GetRegion() const
ConstNeighborhoodIterator< TImage > operator-(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
bool operator!=(const Self &it) const
A light-weight container object for storing an N-dimensional neighborhood of values.
ImageBaseType::SizeType SizeType
typename Superclass::Iterator Iterator
typename Superclass::RadiusType RadiusType
Control indentation during Print() invocation.
ITK_ITERATOR_VIRTUAL void SetBeginIndex(const IndexType &start) ITK_ITERATOR_FINAL
ITK_ITERATOR_VIRTUAL IndexType GetIndex(const OffsetType &o) const ITK_ITERATOR_FINAL
typename NeighborhoodType::NeighborIndexType NeighborIndexType
const ImageType * GetImagePointer() const
char DummyNeighborhoodPixelType
ImageBaseType::IndexType IndexType
ITK_ITERATOR_VIRTUAL IndexType GetIndex(NeighborIndexType i) const ITK_ITERATOR_FINAL
void NeedToUseBoundaryConditionOff()
IndexType GetBeginIndex() const
void SetLocation(const IndexType &position)
ImageBaseType::RegionType RegionType
ITK_ITERATOR_VIRTUAL void SetLoop(const IndexType &p) ITK_ITERATOR_FINAL
typename AllocatorType::iterator Iterator
unsigned int DimensionValueType
void NeedToUseBoundaryConditionOn()
bool operator>=(const Index< VDimension > &one, const Index< VDimension > &two)
void SetNeedToUseBoundaryCondition(bool b)
bool operator>(const Index< VDimension > &one, const Index< VDimension > &two)
typename AllocatorType::const_iterator ConstIterator
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
typename Superclass::OffsetType OffsetType
typename Superclass::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
IndexType GetBound() const
ConstNeighborhoodIterator< TImage > operator+(const ConstNeighborhoodIterator< TImage > &it, const typename ConstNeighborhoodIterator< TImage >::OffsetType &ind)
signed long IndexValueType
typename Superclass::ConstIterator ConstIterator
Index-only version of ConstNeighborhoodIterator, defining iteration of a local N-dimensional neighbor...
SizeValueType NeighborIndexType
typename TImage::RegionType RegionType
constexpr unsigned int Dimension
IndexValueType GetBound(NeighborIndexType n) const
bool GetNeedToUseBoundaryCondition() const