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

itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction > Class Template Reference
[Intensity Image FiltersMultithreaded Filters]

Implements pixel-wise generic operation of Nth similar images. More...

#include <itkNaryFunctorImageFilter.h>

Inheritance diagram for itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >:

Inheritance graph
[legend]
Collaboration diagram for itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef NaryFunctorImageFilter Self
typedef ImageToImageFilter<
TInputImage, TOutputImage > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef TFunction FunctorType
typedef TInputImage InputImageType
typedef InputImageType::Pointer InputImagePointer
typedef InputImageType::RegionType InputImageRegionType
typedef InputImageType::PixelType InputImagePixelType
typedef TOutputImage OutputImageType
typedef OutputImageType::Pointer OutputImagePointer
typedef OutputImageType::RegionType OutputImageRegionType
typedef OutputImageType::PixelType OutputImagePixelType

Public Member Functions

virtual const char * GetClassName () const
FunctorTypeGetFunctor ()
void SetFunctor (FunctorType &functor)

Static Public Member Functions

Pointer New ()

Protected Member Functions

 NaryFunctorImageFilter ()
virtual ~NaryFunctorImageFilter ()
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, int threadId)

Detailed Description

template<class TInputImage, class TOutputImage, class TFunction>
class itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >

Implements pixel-wise generic operation of Nth similar images.

This class is parameterized over the types of the input images and the type of the output image. It is also parameterized by the operation to be applied. A Functor style is used to represent the function.

All the input images are of the same type.

Definition at line 40 of file itkNaryFunctorImageFilter.h.


Member Typedef Documentation

template<class TInputImage, class TOutputImage, class TFunction>
typedef SmartPointer<const Self> itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::ConstPointer
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 49 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef TFunction itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::FunctorType
 

Some typedefs. Definition at line 58 of file itkNaryFunctorImageFilter.h.

Referenced by itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::GetFunctor(), itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::SetFunctor(), and itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::~NaryFunctorImageFilter().

template<class TInputImage, class TOutputImage, class TFunction>
typedef InputImageType::PixelType itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImagePixelType
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 62 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef InputImageType::Pointer itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImagePointer
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 60 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef InputImageType::RegionType itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImageRegionType
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 61 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef TInputImage itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::InputImageType
 

Some convenient typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 59 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef OutputImageType::PixelType itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImagePixelType
 

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 66 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef OutputImageType::Pointer itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImagePointer
 

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 64 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef OutputImageType::RegionType itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageRegionType
 

Superclass typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 65 of file itkNaryFunctorImageFilter.h.

Referenced by itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::~NaryFunctorImageFilter().

template<class TInputImage, class TOutputImage, class TFunction>
typedef TOutputImage itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageType
 

Some convenient typedefs.

Reimplemented from itk::ImageSource< TOutputImage >.

Definition at line 63 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef SmartPointer<Self> itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Pointer
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 48 of file itkNaryFunctorImageFilter.h.

template<class TInputImage, class TOutputImage, class TFunction>
typedef NaryFunctorImageFilter itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Self
 

Standard class typedefs.

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 46 of file itkNaryFunctorImageFilter.h.

Referenced by itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::~NaryFunctorImageFilter().

template<class TInputImage, class TOutputImage, class TFunction>
typedef ImageToImageFilter<TInputImage,TOutputImage> itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Superclass
 

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

Definition at line 47 of file itkNaryFunctorImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage, class TFunction>
itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::NaryFunctorImageFilter  )  [protected]
 

template<class TInputImage, class TOutputImage, class TFunction>
virtual itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::~NaryFunctorImageFilter  )  [inline, protected, virtual]
 

Definition at line 93 of file itkNaryFunctorImageFilter.h.

References itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::FunctorType, itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::OutputImageRegionType, and itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::Self.


Member Function Documentation

template<class TInputImage, class TOutputImage, class TFunction>
virtual const char* itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::GetClassName  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.

template<class TInputImage, class TOutputImage, class TFunction>
FunctorType& itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::GetFunctor  )  [inline]
 

Get the functor object. The functor is returned by reference. (Functors do not have to derive from itk::LightObject, so they do not necessarily have a reference count. So we cannot return a SmartPointer). Definition at line 73 of file itkNaryFunctorImageFilter.h.

References itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::FunctorType.

template<class TInputImage, class TOutputImage, class TFunction>
Pointer itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::Object.

template<class TInputImage, class TOutputImage, class TFunction>
void itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::SetFunctor FunctorType functor  )  [inline]
 

Set the functor object. This replaces the current Functor with a copy of the specified Functor. This allows the user to specify a functor that has ivars set differently than the default functor. This method requires an operator!=() be defined on the functor (or the compiler's default implementation of operator!=() being appropriate). Definition at line 81 of file itkNaryFunctorImageFilter.h.

References itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::FunctorType.

template<class TInputImage, class TOutputImage, class TFunction>
void itk::NaryFunctorImageFilter< TInputImage, TOutputImage, TFunction >::ThreadedGenerateData const OutputImageRegionType outputRegionForThread,
int  threadId
[protected, virtual]
 

NaryFunctorImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"

See also:
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

Reimplemented from itk::ImageSource< TOutputImage >.


The documentation for this class was generated from the following file:
Generated at Sat Mar 31 02:48:54 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000