Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ConditionalConstIterator< TImage > Class Template Reference
[Image Iterators]

ConditionalConstIterator is 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. More...

#include <itkConditionalConstIterator.h>

Inheritance diagram for itk::ConditionalConstIterator:

Inheritance graph
[legend]
List of all members.

Public Types

typedef ConditionalConstIterator Self
typedef TImage::IndexType IndexType
typedef TImage::SizeType SizeType
typedef TImage::RegionType RegionType
typedef TImage ImageType
typedef TImage::InternalPixelType InternalPixelType
typedef TImage::PixelType PixelType

Public Methods

 itkStaticConstMacro (NDimension, unsigned int, TImage::ImageDimension)
virtual bool IsPixelIncluded (const IndexType &index) const=0
Selfoperator= (const Self &it)
virtual const IndexType GetIndex ()=0
virtual const PixelTypeGet (void) const=0
virtual bool IsAtEnd ()=0
virtual void operator++ ()=0
 ConditionalConstIterator ()
virtual ~ConditionalConstIterator ()

Static Public Methods

unsigned int GetIteratorDimension ()

Protected Attributes

ImageType::ConstPointer m_Image
RegionType m_Region
bool m_IsAtEnd

Detailed Description

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

ConditionalConstIterator is 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.


Member Typedef Documentation

template<class TImage>
typedef TImage itk::ConditionalConstIterator< TImage >::ImageType
 

Image typedef support.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 59 of file itkConditionalConstIterator.h.

template<class TImage>
typedef TImage::IndexType itk::ConditionalConstIterator< TImage >::IndexType
 

Index typedef support.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 50 of file itkConditionalConstIterator.h.

template<class TImage>
typedef TImage::InternalPixelType itk::ConditionalConstIterator< TImage >::InternalPixelType
 

Internal Pixel Type

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 62 of file itkConditionalConstIterator.h.

template<class TImage>
typedef TImage::PixelType itk::ConditionalConstIterator< TImage >::PixelType
 

External Pixel Type

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 65 of file itkConditionalConstIterator.h.

template<class TImage>
typedef TImage::RegionType itk::ConditionalConstIterator< TImage >::RegionType
 

Region typedef support.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 56 of file itkConditionalConstIterator.h.

template<class TImage>
typedef ConditionalConstIterator itk::ConditionalConstIterator< TImage >::Self
 

Standard class typedefs.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 41 of file itkConditionalConstIterator.h.

template<class TImage>
typedef TImage::SizeType itk::ConditionalConstIterator< TImage >::SizeType
 

Size typedef support.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

Definition at line 53 of file itkConditionalConstIterator.h.


Constructor & Destructor Documentation

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

Constructor

template<class TImage>
virtual itk::ConditionalConstIterator< TImage >::~ConditionalConstIterator   [virtual]
 

Destructor


Member Function Documentation

template<class TImage>
virtual const PixelType& itk::ConditionalConstIterator< TImage >::Get void    const [pure virtual]
 

Get the pixel value at the current iterator location.

Implemented in itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.

template<class TImage>
virtual const IndexType itk::ConditionalConstIterator< TImage >::GetIndex   [pure virtual]
 

Get the index at the current iterator location.

Implemented in itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

template<class TImage>
unsigned int itk::ConditionalConstIterator< TImage >::GetIteratorDimension   [inline, static]
 

Get the dimension (size) of the index.

Reimplemented in itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

Definition at line 79 of file itkConditionalConstIterator.h.

template<class TImage>
virtual bool itk::ConditionalConstIterator< TImage >::IsAtEnd   [pure virtual]
 

Is the iterator at the end of the region?

Implemented in itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

template<class TImage>
virtual bool itk::ConditionalConstIterator< TImage >::IsPixelIncluded const IndexType   index const [pure virtual]
 

Compute whether the index of interest should be included in the flood

Implemented in itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >.

template<class TImage>
itk::ConditionalConstIterator< TImage >::itkStaticConstMacro NDimension   ,
unsigned    int,
TImage::ImageDimension   
 

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.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >.

template<class TImage>
virtual void itk::ConditionalConstIterator< TImage >::operator++   [pure virtual]
 

Walk forward one index.

Implemented in itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

template<class 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.

Reimplemented in itk::ConditionalIterator< TImage >, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >.

Definition at line 72 of file itkConditionalConstIterator.h.

References itk::ConditionalConstIterator< TImage >::m_Image, and itk::ConditionalConstIterator< TImage >::m_Region.


Member Data Documentation

template<class TImage>
ImageType::ConstPointer itk::ConditionalConstIterator< TImage >::m_Image [protected]
 

Smart pointer to the source image.

Definition at line 103 of file itkConditionalConstIterator.h.

Referenced by itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Get(), itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Get(), itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >::Get(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Get(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin(), itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >::operator=(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), itk::ConditionalIterator< TImage >::operator=(), itk::ConditionalConstIterator< TImage >::operator=(), itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Set(), itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Set(), and itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >::Set().

template<class TImage>
bool itk::ConditionalConstIterator< TImage >::m_IsAtEnd [protected]
 

Is the iterator at the end of its walk?

Definition at line 109 of file itkConditionalConstIterator.h.

Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin(), and itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsAtEnd().

template<class TImage>
RegionType itk::ConditionalConstIterator< TImage >::m_Region [protected]
 

Region type to iterate over.

Definition at line 106 of file itkConditionalConstIterator.h.

Referenced by itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >::operator=(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), itk::ConditionalIterator< TImage >::operator=(), and itk::ConditionalConstIterator< TImage >::operator=().


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:14:59 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000