ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::ConditionalConstIterator< TImage > Class Template Referenceabstract

#include <itkConditionalConstIterator.h>

Detailed Description

template<typename TImage>
class itk::ConditionalConstIterator< TImage >

A base class for other iterators where membership in the set of output pixels is conditional upon some property, calculation, etc. For example, a threshold iterator might walk a region and return only those pixels which meet a minimum intensity condition.

This class is the const version of the ConditionalIterator. For this reason, it doesn't support the Set() method.

Definition at line 38 of file itkConditionalConstIterator.h.

+ Inheritance diagram for itk::ConditionalConstIterator< TImage >:

Public Types

using ImageType = TImage
 
using IndexType = typename TImage::IndexType
 
using InternalPixelType = typename TImage::InternalPixelType
 
using PixelType = typename TImage::PixelType
 
using RegionType = typename TImage::RegionType
 
using Self = ConditionalConstIterator
 
using SizeType = typename TImage::SizeType
 

Public Member Functions

 ConditionalConstIterator ()=default
 
virtual const PixelType Get () const =0
 
virtual const IndexType GetIndex ()=0
 
virtual bool IsAtEnd () const =0
 
virtual bool IsPixelIncluded (const IndexType &index) const =0
 
virtual void operator++ ()=0
 
Selfoperator= (const Self &it)
 
virtual ~ConditionalConstIterator ()=default
 

Static Public Member Functions

static unsigned int GetIteratorDimension ()
 

Static Public Attributes

static constexpr unsigned int NDimension = TImage::ImageDimension
 

Protected Attributes

ImageType::ConstWeakPointer m_Image {}
 
bool m_IsAtEnd { false }
 
RegionType m_Region {}
 

Member Typedef Documentation

◆ ImageType

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::ImageType = TImage

Image type alias support.

Definition at line 60 of file itkConditionalConstIterator.h.

◆ IndexType

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::IndexType = typename TImage::IndexType

Index type alias support.

Definition at line 51 of file itkConditionalConstIterator.h.

◆ InternalPixelType

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::InternalPixelType = typename TImage::InternalPixelType

Internal Pixel Type

Definition at line 63 of file itkConditionalConstIterator.h.

◆ PixelType

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::PixelType = typename TImage::PixelType

External Pixel Type

Definition at line 66 of file itkConditionalConstIterator.h.

◆ RegionType

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::RegionType = typename TImage::RegionType

Region type alias support.

Definition at line 57 of file itkConditionalConstIterator.h.

◆ Self

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::Self = ConditionalConstIterator

Standard class type aliases.

Definition at line 42 of file itkConditionalConstIterator.h.

◆ SizeType

template<typename TImage>
using itk::ConditionalConstIterator< TImage >::SizeType = typename TImage::SizeType

Size type alias support.

Definition at line 54 of file itkConditionalConstIterator.h.

Constructor & Destructor Documentation

◆ ConditionalConstIterator()

template<typename TImage>
itk::ConditionalConstIterator< TImage >::ConditionalConstIterator ( )
default

Constructor

◆ ~ConditionalConstIterator()

template<typename TImage>
virtual itk::ConditionalConstIterator< TImage >::~ConditionalConstIterator ( )
virtualdefault

Destructor

Member Function Documentation

◆ Get()

◆ GetIndex()

template<typename TImage>
virtual const IndexType itk::ConditionalConstIterator< TImage >::GetIndex ( )
pure virtual

◆ GetIteratorDimension()

template<typename TImage>
static unsigned int itk::ConditionalConstIterator< TImage >::GetIteratorDimension ( )
inlinestatic

Get the dimension (size) of the index.

Definition at line 85 of file itkConditionalConstIterator.h.

References NDimension.

◆ IsAtEnd()

template<typename TImage>
virtual bool itk::ConditionalConstIterator< TImage >::IsAtEnd ( ) const
pure virtual

◆ IsPixelIncluded()

◆ operator++()

template<typename TImage>
virtual void itk::ConditionalConstIterator< TImage >::operator++ ( )
pure virtual

◆ operator=()

template<typename TImage>
Self & itk::ConditionalConstIterator< TImage >::operator= ( const Self & it)
inline

operator= is provided to make sure the handle to the image is properly reference counted.

Definition at line 75 of file itkConditionalConstIterator.h.

References m_Image, m_IsAtEnd, and m_Region.

Member Data Documentation

◆ m_Image

◆ m_IsAtEnd

◆ m_Region

◆ NDimension

template<typename TImage>
unsigned int itk::ConditionalConstIterator< TImage >::NDimension = TImage::ImageDimension
staticconstexpr

Dimension of the image the iterator walks. This constant is needed so that functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.

Definition at line 48 of file itkConditionalConstIterator.h.

Referenced by GetIteratorDimension().


The documentation for this class was generated from the following file: