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

itk::Functor::JoinFunctor< TPixel1, TPixel2 > Class Template Reference

Join the components of two pixel types into a single pixel type. More...

#include <itkJoinImageFilter.h>

List of all members.

Public Types

typedef JoinFunctor Self
typedef PixelTraits< TPixel1
>::ValueType 
ValueType1
typedef PixelTraits< TPixel2
>::ValueType 
ValueType2
typedef JoinTraits< ValueType1,
ValueType2 >::ValueType 
JoinValueType
typedef Vector< JoinValueType,
itkGetStaticConstMacro(JoinDimension) 
JoinType )

Public Methods

 JoinFunctor ()
 ~JoinFunctor ()
JoinType operator() (const TPixel1 &A, const TPixel2 &B)
 itkStaticConstMacro (Dimension1, unsigned int, PixelTraits< TPixel1 >::Dimension)
 itkStaticConstMacro (Dimension2, unsigned int, PixelTraits< TPixel2 >::Dimension)
 itkStaticConstMacro (JoinDimension, unsigned int, Dimension1+Dimension2)


Detailed Description

template<class TPixel1, class TPixel2>
class itk::Functor::JoinFunctor< TPixel1, TPixel2 >

Join the components of two pixel types into a single pixel type.

JoinFunctor combines the components of two pixel types into a single pixel type. The components of one pixel are appended to the components of the other pixel. The output pixel type is an itk::Vector. The ValueType of the vector is the smallest scalar type that can represent the dynamic range of the both the input pixel value types. Hence, joining a char and unsigned char results in a short since that is the smallest datatype with a large enough dynamic range. To define a consistent behavior across different architectures, the join of an int and an unsigned int is float. On a 64 bit architecture, this join could be represented in a long. But on 32 bit architectures, the only safe join value type is a float. For this and similar ambiguous cases, the join value type is promoted to a float.

Definition at line 46 of file itkJoinImageFilter.h.


Member Typedef Documentation

template<class TPixel1, class TPixel2>
typedef Vector<JoinValueType, itkGetStaticConstMacro(JoinDimension) itk::Functor::JoinFunctor< TPixel1, TPixel2 >::JoinType)
 

A vector of the join dimension.

Definition at line 71 of file itkJoinImageFilter.h.

template<class TPixel1, class TPixel2>
typedef JoinTraits<ValueType1, ValueType2>::ValueType itk::Functor::JoinFunctor< TPixel1, TPixel2 >::JoinValueType
 

Definition at line 59 of file itkJoinImageFilter.h.

template<class TPixel1, class TPixel2>
typedef JoinFunctor itk::Functor::JoinFunctor< TPixel1, TPixel2 >::Self
 

Standard typedefs

Definition at line 54 of file itkJoinImageFilter.h.

template<class TPixel1, class TPixel2>
typedef PixelTraits<TPixel1>::ValueType itk::Functor::JoinFunctor< TPixel1, TPixel2 >::ValueType1
 

Typedefs for the output join type.

Definition at line 57 of file itkJoinImageFilter.h.

template<class TPixel1, class TPixel2>
typedef PixelTraits<TPixel2>::ValueType itk::Functor::JoinFunctor< TPixel1, TPixel2 >::ValueType2
 

Definition at line 58 of file itkJoinImageFilter.h.


Constructor & Destructor Documentation

template<class TPixel1, class TPixel2>
itk::Functor::JoinFunctor< TPixel1, TPixel2 >::JoinFunctor   [inline]
 

Definition at line 49 of file itkJoinImageFilter.h.

template<class TPixel1, class TPixel2>
itk::Functor::JoinFunctor< TPixel1, TPixel2 >::~JoinFunctor   [inline]
 

Definition at line 50 of file itkJoinImageFilter.h.


Member Function Documentation

template<class TPixel1, class TPixel2>
itk::Functor::JoinFunctor< TPixel1, TPixel2 >::itkStaticConstMacro JoinDimension   ,
unsigned    int,
Dimension1+    Dimension2
 

Capture the dimensions of the image.

template<class TPixel1, class TPixel2>
itk::Functor::JoinFunctor< TPixel1, TPixel2 >::itkStaticConstMacro Dimension2   ,
unsigned    int,
PixelTraits< TPixel2 >::Dimension   
 

Capture the dimensions of the image.

template<class TPixel1, class TPixel2>
itk::Functor::JoinFunctor< TPixel1, TPixel2 >::itkStaticConstMacro Dimension1   ,
unsigned    int,
PixelTraits< TPixel1 >::Dimension   
 

Capture the dimensions of the image.

template<class TPixel1, class TPixel2>
JoinType itk::Functor::JoinFunctor< TPixel1, TPixel2 >::operator() const TPixel1 &    A,
const TPixel2 &    B
[inline]
 

operator(). This is the "call" method of the functor.

Definition at line 74 of file itkJoinImageFilter.h.


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:52:00 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000