18 #ifndef itkImageRegionConstIterator_h
19 #define itkImageRegionConstIterator_h
106 template<
typename TImage >
118 static constexpr
unsigned int ImageIteratorDimension = Superclass::ImageIteratorDimension;
143 m_SpanBeginOffset = 0;
153 m_SpanBeginOffset = this->m_BeginOffset;
154 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
169 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
170 - ( ind[0] - this->m_Region.GetIndex()[0] );
171 m_SpanBeginOffset = m_SpanEndOffset
186 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
187 - ( ind[0] - this->m_Region.GetIndex()[0] );
188 m_SpanBeginOffset = m_SpanEndOffset
196 Superclass::GoToBegin();
199 m_SpanBeginOffset = this->m_BeginOffset;
200 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
207 Superclass::GoToEnd();
210 m_SpanEndOffset = this->m_EndOffset;
211 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
219 Superclass::SetIndex(ind);
220 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
221 - ( ind[0] - this->m_Region.GetIndex()[0] );
222 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
236 if ( ++this->m_Offset >= m_SpanEndOffset )
253 if ( --this->m_Offset < m_SpanBeginOffset )
273 #ifndef ITK_MANUAL_INSTANTIATION
274 #include "itkImageRegionConstIterator.hxx"
void SetIndex(const IndexType &ind) override
typename BufferType::OffsetType OffsetType
typename BufferType::InternalPixelType InternalPixelType
ImageRegionConstIterator(const ImageConstIterator< TImage > &it)
A multi-dimensional iterator templated over image type.
typename PixelContainer::Pointer PixelContainerPointer
typename BufferType::PixelType PixelType
ImageRegionConstIterator()
typename BufferType::PixelContainer PixelContainer
ImageRegionConstIterator(const ImageIterator< TImage > &it)
OffsetValueType m_SpanBeginOffset
A multi-dimensional image iterator templated over image type.
OffsetValueType m_SpanEndOffset
Self & operator=(const Self &it)
ImageBaseType::SizeType SizeType
ImageBaseType::IndexType IndexType
A multi-dimensional iterator templated over image type that walks a region of pixels.
typename BufferType::IndexType IndexType
typename BufferType::SizeType SizeType
ImageRegionConstIterator(const ImageType *ptr, const RegionType ®ion)
typename BufferType::AccessorType AccessorType
typename BufferType::RegionType RegionType
ImageBaseType::RegionType RegionType
signed long OffsetValueType