18 #ifndef itkRLEImageScanlineConstIterator_h
19 #define itkRLEImageScanlineConstIterator_h
33 template<
typename TPixel,
unsigned int VImageDimension,
typename CounterType >
101 this->m_Index0 = this->m_BeginIndex0;
102 this->m_RealIndex = 0;
103 this->m_SegmentRemainder = ( *this->m_RunLengthLine )[this->m_RealIndex].first;
111 this->m_Index0 = this->m_EndIndex0;
112 this->m_RealIndex = this->m_RunLengthLine->size() - 1;
113 this->m_SegmentRemainder = 0;
121 return this->m_Index0 == this->m_EndIndex0;
129 if ( !this->m_BI.IsAtEnd() )
131 this->SetIndexInternal( this->m_BeginIndex0 );
135 this->m_Index0 = this->m_BeginIndex0;
150 itkAssertInDebugAndIgnoreInReleaseMacro( !this->
IsAtEndOfLine() );
152 this->m_SegmentRemainder--;
153 if ( this->m_SegmentRemainder > 0 )
164 this->m_SegmentRemainder = ( *this->m_RunLengthLine )[this->m_RealIndex].first;
175 this->m_SegmentRemainder++;
176 if ( this->m_SegmentRemainder <= ( *this->m_RunLengthLine )[this->m_RealIndex].first )
183 this->m_SegmentRemainder = 1;
189 #endif // itkRLEImageScanlineConstIterator_h
Superclass::IndexType IndexType
Superclass::InternalPixelType InternalPixelType
ImageType::IndexType IndexType
ImageType::InternalPixelType InternalPixelType
ImageRegionConstIterator< RLEImage< TPixel, VImageDimension, CounterType > > Superclass
ImageScanlineConstIterator Self
A multi-dimensional iterator templated over image type.
An image region represents a structured region of data.
static const unsigned int ImageIteratorDimension
ImageType::SizeType SizeType
Self & operator=(const Self &it)
ImageType::PixelType PixelType
Superclass::PixelType PixelType
A multi-dimensional iterator templated over image type that walks a region of pixels.
void GoToBeginOfLine(void)
ImageScanlineConstIterator Self
ImageType::OffsetType OffsetType
ImageScanlineConstIterator()
Superclass::OffsetType OffsetType
Superclass::SizeType SizeType
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.
Run-Length Encoded image. It saves memory for label images at the expense of processing times...
ImageScanlineConstIterator(const ImageConstIterator< ImageType > &it)
ImageScanlineConstIterator(const ImageIterator< ImageType > &it)
Superclass::ImageType ImageType
ImageScanlineConstIterator(const ImageType *ptr, const RegionType ®ion)
Superclass::RegionType RegionType