18 #ifndef itkImageConstIteratorWithIndex_h
19 #define itkImageConstIteratorWithIndex_h
91 template<
typename TImage >
102 static constexpr
unsigned int ImageDimension = TImage::ImageDimension;
132 using AccessorType =
typename TImage::AccessorType;
133 using AccessorFunctorType =
typename TImage::AccessorFunctorType;
162 return ImageDimension;
227 return m_PositionIndex;
241 m_Position = m_Image->GetBufferPointer() + m_Image->ComputeOffset(ind);
242 m_PositionIndex = ind;
249 return m_PixelAccessorFunctor.Get(*m_Position);
264 void GoToReverseBegin();
308 #ifndef ITK_MANUAL_INSTANTIATION
309 #include "itkImageConstIteratorWithIndex.hxx"
typename TImageType::SizeType SizeType
typename SizeType::SizeValueType SizeValueType
typename IndexType::IndexValueType IndexValueType
const InternalPixelType * m_End
static unsigned int GetImageDimension()
bool operator==(const Self &it) const
const PixelType & Value() const
AccessorFunctorType m_PixelAccessorFunctor
unsigned long SizeValueType
typename PixelContainer::Pointer PixelContainerPointer
const IndexType & GetIndex() const
typename TImageType::InternalPixelType InternalPixelType
typename OffsetType::OffsetValueType OffsetValueType
void SetIndex(const IndexType &ind)
typename TImageType::PixelType PixelType
const InternalPixelType * m_Position
AccessorType m_PixelAccessor
TImage::ConstWeakPointer m_Image
A base class for multi-dimensional iterators templated over image type that are designed to efficient...
bool operator<=(const Index< VDimension > &one, const Index< VDimension > &two)
ImageBaseType::SizeType SizeType
ImageBaseType::IndexType IndexType
bool IsAtReverseEnd() const
signed long IndexValueType
IndexType m_PositionIndex
typename TImageType::IndexType IndexType
bool operator>=(const Self &it) const
const RegionType & GetRegion() const
bool operator<(const Index< VDimension > &one, const Index< VDimension > &two)
bool operator>(const Self &it) const
typename TImageType::PixelContainer PixelContainer
bool operator!=(const Self &it) const
ImageBaseType::RegionType RegionType
typename TImageType::OffsetType OffsetType
signed long OffsetValueType
const InternalPixelType * m_Begin