18#ifndef itkRLEImageScanlineConstIterator_h
19#define itkRLEImageScanlineConstIterator_h
33template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
100 this->m_Index0 = this->m_BeginIndex0;
101 this->m_RealIndex = 0;
102 this->m_SegmentRemainder = (*this->m_RunLengthLine)[this->m_RealIndex].first;
109 this->m_Index0 = this->m_EndIndex0;
110 this->m_RealIndex = this->m_RunLengthLine->size() - 1;
111 this->m_SegmentRemainder = 0;
118 return this->m_Index0 == this->m_EndIndex0;
126 if (!this->m_BI.IsAtEnd())
128 this->SetIndexInternal(this->m_BeginIndex0);
132 this->m_Index0 = this->m_BeginIndex0;
146 itkAssertInDebugAndIgnoreInReleaseMacro(!this->
IsAtEndOfLine());
148 this->m_SegmentRemainder--;
149 if (this->m_SegmentRemainder > 0)
159 this->m_SegmentRemainder = (*this->m_RunLengthLine)[this->m_RealIndex].first;
170 this->m_SegmentRemainder++;
171 if (this->m_SegmentRemainder <= (*this->m_RunLengthLine)[this->m_RealIndex].first)
177 this->m_SegmentRemainder = 1;
183template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
188template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
Self & operator=(const Self &)=default
detail::IteratorImageType_t< TImage > ImageType
static constexpr unsigned int ImageIteratorDimension
typename TImage::OffsetType OffsetType
typename TImage::InternalPixelType InternalPixelType
typename TImage::IndexType IndexType
typename TImage::SizeType SizeType
typename TImage::RegionType RegionType
friend class ImageIterator
typename TImage::PixelType PixelType
Read-only ImageRegionIterator: ImageRegionConstIterator<TImage> behaves as ImageRegionIterator<const ...
Read-only ImageScanlineIterator: ImageScanlineConstIterator<TImage> behaves as ImageScanlineIterator<...
ImageScanlineIterator< std::add_const_t< TImage > > Superclass
ImageScanlineConstIterator()=default
ImageScanlineConstIterator Self
detail::IteratorImageType_t< TImage > ImageType
typename TImage::OffsetType OffsetType
typename TImage::InternalPixelType InternalPixelType
bool IsAtEndOfLine() const
typename TImage::IndexType IndexType
typename TImage::SizeType SizeType
typename TImage::RegionType RegionType
typename TImage::PixelType PixelType
Run-Length Encoded image. It saves memory for label images at the expense of processing times....
typename Superclass::RegionType RegionType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ImageScanlineConstIterator(const TImage *, const typename TImage::RegionType &) -> ImageScanlineConstIterator< TImage >
ImageConstIterator(const TImage *, const typename TImage::RegionType &) -> ImageConstIterator< TImage >
ImageRegionConstIterator(const TImage *, const typename TImage::RegionType &) -> ImageRegionConstIterator< TImage >