 |
ITK
5.4.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();
233 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(
Self);
274 this->SetLoop(position);
281 operator+=(
const OffsetType &);
287 operator-=(
const OffsetType &);
314 IndexInBounds(
const NeighborIndexType n, OffsetType & internalIndex, OffsetType & offset)
const;
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
355 SetBound(
const SizeType &) ITK_ITERATOR_FINAL;
359 ITK_ITERATOR_VIRTUAL
void
362 m_BeginIndex = start;
367 ITK_ITERATOR_VIRTUAL
void
368 SetEndIndex() ITK_ITERATOR_FINAL;
395 mutable bool m_IsInBounds{
false };
400 mutable bool m_IsInBoundsValid{
false };
409 bool m_NeedToUseBoundaryCondition{
false };
412 template <
typename TImage>
413 inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
423 template <
typename TImage>
424 inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
431 template <
typename TImage>
432 inline ConstNeighborhoodIteratorWithOnlyIndex<TImage>
443 #ifndef ITK_MANUAL_INSTANTIATION
444 # include "itkConstNeighborhoodIteratorWithOnlyIndex.hxx"
SmartPointer< const Self > ConstPointer
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)
A light-weight container object for storing an N-dimensional neighborhood of values.
ImageBaseType::SizeType SizeType
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
OffsetType operator-(const Self &b) const
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.
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)
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