#include <itkPixelTraits.h>
Public Types | |
typedef TValueType1 | ValueType |
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.
|
Definition at line 155 of file itkPixelTraits.h. |