ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Types | List of all members
itk::JoinTraits< TValue1, TValue2 > Class Template Reference

#include <itkPixelTraits.h>

Detailed Description

template<typename TValue1, typename TValue2>
class itk::JoinTraits< TValue1, TValue2 >

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

Public Types

typedef TValue1 ValueType
 

Member Typedef Documentation

template<typename TValue1, typename TValue2 >
typedef TValue1 itk::JoinTraits< TValue1, TValue2 >::ValueType

Definition at line 198 of file itkPixelTraits.h.


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