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

itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage > Class Template Reference
[Intensity Image FiltersMultithreaded Filters]

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

#include <itkAddImageFilter.h>

List of all members.

Public Types

typedef AddImageFilter Self
typedef BinaryFunctorImageFilter<
TInputImage1, TInputImage2,
TOutputImage, Functor::Add2<
typename TInputImage1::PixelType,
typename TInputImage2::PixelType,
typename TOutputImage::PixelType > > 
Superclass
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer

Static Public Member Functions

Pointer New ()

Protected Member Functions

 AddImageFilter ()
virtual ~AddImageFilter ()


Detailed Description

template<class TInputImage1, class TInputImage2, class TOutputImage>
class itk::AddImageFilter< TInputImage1, TInputImage2, 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 73 of file itkAddImageFilter.h.


Member Typedef Documentation

template<class TInputImage1, class TInputImage2, class TOutputImage>
typedef SmartPointer<const Self> itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::ConstPointer
 

Definition at line 93 of file itkAddImageFilter.h.

template<class TInputImage1, class TInputImage2, class TOutputImage>
typedef SmartPointer<Self> itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Pointer
 

Definition at line 92 of file itkAddImageFilter.h.

template<class TInputImage1, class TInputImage2, class TOutputImage>
typedef AddImageFilter itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Self
 

Standard class typedefs. Definition at line 85 of file itkAddImageFilter.h.

template<class TInputImage1, class TInputImage2, class TOutputImage>
typedef BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage, Functor::Add2< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType> > itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::Superclass
 

Definition at line 91 of file itkAddImageFilter.h.


Constructor & Destructor Documentation

template<class TInputImage1, class TInputImage2, class TOutputImage>
itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::AddImageFilter  )  [inline, protected]
 

Definition at line 99 of file itkAddImageFilter.h.

template<class TInputImage1, class TInputImage2, class TOutputImage>
virtual itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::~AddImageFilter  )  [inline, protected, virtual]
 

Definition at line 100 of file itkAddImageFilter.h.


Member Function Documentation

template<class TInputImage1, class TInputImage2, class TOutputImage>
Pointer itk::AddImageFilter< TInputImage1, TInputImage2, TOutputImage >::New  )  [static]
 

Method for creation through the object factory.


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