18#ifndef itkRLEImageIterator_h
19#define itkRLEImageIterator_h
35template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
54 using SizeType =
typename Superclass::SizeType;
93 ->SetPixel(*
const_cast<typename ImageType::RLLine *
>(this->m_RunLengthLine),
94 this->m_SegmentRemainder,
131template <
typename TPixel,
unsigned int VImageDimension,
typename CounterType>
159 Set(
const TPixel & value)
const
163 this->m_SegmentRemainder,
ImageConstIteratorWithIndex()
Read-only ImageIterator: ImageConstIterator<TImage> behaves as ImageIterator<const TImage>.
ImageConstIterator()=default
ImageType * GetImage() const
ImageIteratorWithIndex(const ImageType *ptr, const RegionType ®ion)
RLEImage< TPixel, VImageDimension, CounterType > ImageType
ImageIteratorWithIndex(const ImageIteratorWithIndex &it)
void Set(const TPixel &value) const
typename itk::ImageConstIterator< RLEImage< TPixel, VImageDimension, CounterType > >::RegionType RegionType
WeakPointer< RLEImage< TPixel, VImageDimension, CounterType > > m_Image
detail::IteratorImageType_t< TImage > ImageType
static constexpr unsigned int ImageIteratorDimension
ImageIterator(ImageType *ptr, const RegionType ®ion)
ImageConstIterator< RLEImage< TPixel, VImageDimension, CounterType > > Superclass
~ImageIterator() override=default
typename Superclass::SizeType SizeType
ImageIterator(const ImageConstIterator< ImageType > &it)
typename Superclass::OffsetType OffsetType
typename Superclass::InternalPixelType InternalPixelType
typename Superclass::IndexType IndexType
Self & operator=(const ImageConstIterator< ImageType > &it)
ImageType * GetImage() const
ImageIterator(const Self &it)
typename Superclass::RegionType RegionType
typename Superclass::ImageType ImageType
typename Superclass::PixelType PixelType
Self & operator=(const Self &it)
void Set(const PixelType &value) const
Self & operator=(const Self &)=default
detail::IteratorImageType_t< TImage > ImageType
WeakPointer< RLEImage< TPixel, VImageDimension, CounterType > > m_Image
Run-Length Encoded image. It saves memory for label images at the expense of processing times....
std::vector< RLSegment > RLLine
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....