ITK
5.2.0
Insight Toolkit
|
#include <itkPixelTraits.h>
Public Types | |
using | ValueType = TValue1 |
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.
using itk::JoinTraits< TValue1, TValue2 >::ValueType = TValue1 |
Definition at line 198 of file itkPixelTraits.h.