18#ifndef itkRLEImageRegionConstIterator_h
19#define itkRLEImageRegionConstIterator_h
26class MultiLabelMeshPipeline;
41template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
45 friend class ::MultiLabelMeshPipeline;
113 if (this->m_Index0 >= this->m_EndIndex0)
116 if (!this->m_BI.IsAtEnd())
118 this->SetIndexInternal(this->m_BeginIndex0);
122 this->m_Index0 = this->m_BeginIndex0;
127 this->m_SegmentRemainder--;
128 if (this->m_SegmentRemainder > 0)
134 this->m_SegmentRemainder = (*this->m_RunLengthLine)[this->m_RealIndex].first;
150 if (this->m_Index0 < this->m_BeginIndex0)
153 this->SetIndexInternal(this->m_EndIndex0 - 1);
157 this->m_SegmentRemainder++;
158 if (this->m_SegmentRemainder <= (*this->m_RunLengthLine)[this->m_RealIndex].first)
164 this->m_SegmentRemainder = 1;
169template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
192 this->m_BI.GoToEnd();
194 this->m_Index0 = this->m_EndIndex0 - 1;
195 this->SetIndexInternal(this->m_Index0);
201 return (this->m_Index0 == this->m_BeginIndex0) && this->m_BI.IsAtBegin();
216template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
254template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
Read-only ImageIterator: ImageConstIterator<TImage> behaves as ImageIterator<const TImage>.
A multi-dimensional image iterator templated over image type.
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
RLEImage< TPixel, VImageDimension, CounterType > ImageType
ImageRegionConstIteratorWithIndex(const ImageIterator< ImageType > &it)
ImageRegionConstIteratorWithIndex(const ImageType *ptr, const RegionType ®ion)
ImageRegionConstIteratorWithIndex()
typename itk::ImageConstIterator< RLEImage< TPixel, VImageDimension, CounterType > >::RegionType RegionType
ImageRegionConstIteratorWithOnlyIndex()
typename itk::ImageConstIterator< RLEImage< TPixel, VImageDimension, CounterType > >::RegionType RegionType
ImageRegionConstIteratorWithOnlyIndex(const ImageIterator< ImageType > &it)
ImageRegionConstIteratorWithOnlyIndex(const ImageType *ptr, const RegionType ®ion)
RLEImage< TPixel, VImageDimension, CounterType > ImageType
Read-only ImageRegionIterator: ImageRegionConstIterator<TImage> behaves as ImageRegionIterator<const ...
ImageRegionIterator< std::add_const_t< TImage > > Superclass
ImageRegionConstIterator Self
ImageRegionConstIterator()=default
detail::IteratorImageType_t< TImage > ImageType
typename TImage::OffsetType OffsetType
typename TImage::InternalPixelType InternalPixelType
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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
ImageConstIterator(const TImage *, const typename TImage::RegionType &) -> ImageConstIterator< TImage >
ImageRegionConstIterator(const TImage *, const typename TImage::RegionType &) -> ImageRegionConstIterator< TImage >