ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types
itk::JoinTraits< TValueType1, TValueType2 > Class Template Reference

#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 178 of file itkPixelTraits.h.


Member Typedef Documentation

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

Definition at line 181 of file itkPixelTraits.h.


The documentation for this class was generated from the following file: