18 #ifndef itkImageScanlineConstIterator_h
19 #define itkImageScanlineConstIterator_h
62 template<
typename TImage >
75 itkStaticConstMacro(ImageIteratorDimension,
unsigned int,
76 Superclass::ImageIteratorDimension);
102 m_SpanBeginOffset = 0;
112 m_SpanBeginOffset = this->m_BeginOffset;
113 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
128 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
129 - ( ind[0] - this->m_Region.GetIndex()[0] );
130 m_SpanBeginOffset = m_SpanEndOffset
145 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
146 - ( ind[0] - this->m_Region.GetIndex()[0] );
147 m_SpanBeginOffset = m_SpanEndOffset
155 Superclass::GoToBegin();
158 m_SpanBeginOffset = this->m_BeginOffset;
159 m_SpanEndOffset = this->m_BeginOffset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
169 Superclass::GoToEnd();
172 m_SpanEndOffset = this->m_EndOffset;
173 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
185 this->m_Offset = m_SpanBeginOffset;
198 this->m_Offset = m_SpanEndOffset;
205 return this->m_Offset >= m_SpanEndOffset;
216 Superclass::SetIndex(ind);
217 m_SpanEndOffset = this->m_Offset +
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] )
218 - ( ind[0] - this->m_Region.GetIndex()[0] );
219 m_SpanBeginOffset = m_SpanEndOffset -
static_cast< OffsetValueType >( this->m_Region.GetSize()[0] );
246 itkAssertInDebugAndIgnoreInReleaseMacro( !this->IsAtEndOfLine() );
257 itkAssertInDebugAndIgnoreInReleaseMacro( !this->IsAtEndOfLine() );
277 #ifndef ITK_MANUAL_INSTANTIATION
278 #include "itkImageScanlineConstIterator.hxx"
PixelContainer::Pointer PixelContainerPointer
Superclass::PixelType PixelType
Superclass::IndexType IndexType
signed long OffsetValueType
ImageScanlineConstIterator Self
Superclass::RegionType RegionType
A multi-dimensional iterator templated over image type.
ImageConstIterator< TImage > Superclass
Superclass::InternalPixelType InternalPixelType
void GoToBeginOfLine(void)
A multi-dimensional image iterator templated over image type.
Self & operator=(const Self &it)
Superclass::SizeType SizeType
Superclass::ImageType ImageType
TImage::AccessorType AccessorType
TImage::InternalPixelType InternalPixelType
ImageScanlineConstIterator(const ImageType *ptr, const RegionType ®ion)
Superclass::PixelContainerPointer PixelContainerPointer
OffsetValueType m_SpanBeginOffset
TImage::IndexType IndexType
TImage::PixelType PixelType
ImageScanlineConstIterator()
ImageScanlineConstIterator(const ImageIterator< TImage > &it)
void SetIndex(const IndexType &ind) override
TImage::RegionType RegionType
TImage::PixelContainer PixelContainer
A multi-dimensional iterator templated over image type that walks a region of pixels, scanline by scanline or in the direction of the fastest axis.
ImageScanlineConstIterator(const ImageConstIterator< TImage > &it)
Superclass::PixelContainer PixelContainer
Superclass::OffsetType OffsetType
TImage::OffsetType OffsetType
TImage::SizeType SizeType
Superclass::AccessorType AccessorType
OffsetValueType m_SpanEndOffset