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

itk::JoinTraits< TValueType1, TValueType2 > Class Template Reference

Trait to determine what datatype is needed if the specified pixel types are "joined" into a single vector. More...

#include <itkPixelTraits.h>

List of all members.

Public Types

typedef TValueType1 ValueType


Detailed Description

template<class TValueType1, class TValueType2>
class itk::JoinTraits< TValueType1, TValueType2 >

Trait to determine what datatype is needed if the specified pixel types are "joined" into a single vector.

JoinTraits defines the value type needed to combine the specified pixel types into a single vector. The data type selected is the smallest data type that can represent the dynamic range of both input pixel types. For example, if a char and unsigned short are "joined", the resulting data type must be a vector of int. In some cases, like joining a unsigned int and a char, the join value type is promoted all the way to a float. This provides consistent behavior on both 32 and 64 bit systems (on 64 bit systems, we could have promoted to a long which is distinct from an int but this is not the case for 32 bit systems, so we promote to float). There are several combinations similar to this. Most of the JoinTraits are specializations of the base template.

Definition at line 152 of file itkPixelTraits.h.


Member Typedef Documentation

template<class TValueType1, class TValueType2>
typedef TValueType1 itk::JoinTraits< TValueType1, TValueType2 >::ValueType
 

Definition at line 155 of file itkPixelTraits.h.


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