18 #ifndef itkImageRegionConstIterator_h
19 #define itkImageRegionConstIterator_h
106 template<
typename TImage >
118 itkStaticConstMacro(ImageIteratorDimension,
unsigned int,
119 Superclass::ImageIteratorDimension);
144 m_SpanBeginOffset = 0;
154 m_SpanBeginOffset = this->m_BeginOffset;
155 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
170 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
171 - ( ind[0] - this->m_Region.GetIndex()[0] );
172 m_SpanBeginOffset = m_SpanEndOffset
187 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
188 - ( ind[0] - this->m_Region.GetIndex()[0] );
189 m_SpanBeginOffset = m_SpanEndOffset
197 Superclass::GoToBegin();
200 m_SpanBeginOffset = this->m_BeginOffset;
201 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
208 Superclass::GoToEnd();
211 m_SpanEndOffset = this->m_EndOffset;
212 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
218 itkLegacyMacro(Self Begin(
void)
const);
223 itkLegacyMacro(Self End(
void)
const);
230 Superclass::SetIndex(ind);
231 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
232 - ( ind[0] - this->m_Region.GetIndex()[0] );
233 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
247 if ( ++this->m_Offset >= m_SpanEndOffset )
264 if ( --this->m_Offset < m_SpanBeginOffset )
284 #ifndef ITK_MANUAL_INSTANTIATION
285 #include "itkImageRegionConstIterator.hxx"
PixelContainer::Pointer PixelContainerPointer
Superclass::OffsetType OffsetType
void SetIndex(const IndexType &ind) override
signed long OffsetValueType
Superclass::InternalPixelType InternalPixelType
Superclass::ImageType ImageType
ImageRegionConstIterator(const ImageConstIterator< TImage > &it)
A multi-dimensional iterator templated over image type.
ImageRegionConstIterator()
Superclass::PixelContainerPointer PixelContainerPointer
Superclass::AccessorType AccessorType
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)
Superclass::SizeType SizeType
BufferType::AccessorType AccessorType
BufferType::InternalPixelType InternalPixelType
A multi-dimensional iterator templated over image type that walks a region of pixels.
Superclass::IndexType IndexType
BufferType::IndexType IndexType
BufferType::PixelType PixelType
Superclass::RegionType RegionType
ImageRegionConstIterator(const ImageType *ptr, const RegionType ®ion)
BufferType::RegionType RegionType
BufferType::PixelContainer PixelContainer
ImageRegionConstIterator Self
Superclass::PixelType PixelType
BufferType::OffsetType OffsetType
BufferType::SizeType SizeType
ImageConstIterator< TImage > Superclass
Superclass::PixelContainer PixelContainer