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

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

Implements an operator for pixel-wise addition of two images. More...

#include <itkNaryAddImageFilter.h>

Inheritance diagram for itk::NaryAddImageFilter:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef NaryAddImageFilter Self
typedef NaryFunctorImageFilter<
TInputImage, TOutputImage,
Functor::Add1< typename TInputImage::PixelType,
typename TOutputImage::PixelType > > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer

Static Public Methods

Pointer New ()

Protected Methods

 NaryAddImageFilter ()
virtual ~NaryAddImageFilter ()

Detailed Description

template<class TInputImage, class TOutputImage>
class itk::NaryAddImageFilter< TInputImage, TOutputImage >

Implements an operator for pixel-wise addition of two images.

This class is parametrized over the types of the two input images and the type of the output image. Numeric conversions (castings) are done by the C++ defaults.

The pixel type of the input 1 image must have a valid defintion of the operator+ with a pixel type of the image 2. This condition is required because internally this filter will perform the operation

pixel_from_image_1 + pixel_from_image_2

Additionally the type resulting from the sum, will be cast to the pixel type of the output image.

The total operation over one pixel will be

output_pixel = static_cast<OutputPixelType>( input1_pixel + input2_pixel )

For example, this filter could be used directly for adding images whose pixels are vectors of the same dimension, and to store the resulting vector in an output image of vector pixels.

Warning:
No numeric overflow checking is performed in this filter.

Definition at line 77 of file itkNaryAddImageFilter.h.


Member Typedef Documentation

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

Reimplemented from itk::NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 90 of file itkNaryAddImageFilter.h.

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

Reimplemented from itk::NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 89 of file itkNaryAddImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef NaryAddImageFilter itk::NaryAddImageFilter< TInputImage, TOutputImage >::Self
 

Standard class typedefs.

Reimplemented from itk::NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 85 of file itkNaryAddImageFilter.h.

template<class TInputImage, class TOutputImage>
typedef NaryFunctorImageFilter<TInputImage,TOutputImage, Functor::Add1< typename TInputImage::PixelType, typename TOutputImage::PixelType> > itk::NaryAddImageFilter< TInputImage, TOutputImage >::Superclass
 

Reimplemented from itk::NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< TInputImage::PixelType, TOutputImage::PixelType > >.

Definition at line 88 of file itkNaryAddImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage, class TOutputImage>
itk::NaryAddImageFilter< TInputImage, TOutputImage >::NaryAddImageFilter   [inline, protected]
 

Definition at line 96 of file itkNaryAddImageFilter.h.

template<class TInputImage, class TOutputImage>
virtual itk::NaryAddImageFilter< TInputImage, TOutputImage >::~NaryAddImageFilter   [inline, protected, virtual]
 

Definition at line 97 of file itkNaryAddImageFilter.h.


Member Function Documentation

template<class TInputImage, class TOutputImage>
Pointer itk::NaryAddImageFilter< TInputImage, TOutputImage >::New   [static]
 

Method for creation through the object factory.

Reimplemented from itk::NaryFunctorImageFilter< TInputImage, TOutputImage, Functor::Add1< TInputImage::PixelType, TOutputImage::PixelType > >.


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