Data type traits for single-precision floating point. More...
#include <cmtkDataTypeTraits.h>
Public Types | |
typedef DataTypeTraits< float > | Self |
This class. | |
Static Public Member Functions | |
static ScalarDataType | GetScalarDataType () |
Get the scalar type ID constant for this type. | |
static float | Abs (const float value) |
Get absolute value. | |
template<class T > | |
static float | Convert (const T value, const bool paddingFlag=false, const float paddingData=0) |
Return given value converted (and rounded) to discrete type. | |
static float | ChoosePaddingValue () |
Return PADDING data value (i.e. | |
Static Public Attributes | |
static const ScalarDataType | DataTypeID = TYPE_FLOAT |
Data type traits for single-precision floating point.
Definition at line 65 of file cmtkDataTypeTraits.h.
typedef DataTypeTraits<float> cmtk::DataTypeTraits< float >::Self |
This class.
Definition at line 69 of file cmtkDataTypeTraits.h.
static float cmtk::DataTypeTraits< float >::Abs | ( | const float | value ) | [inline, static] |
Get absolute value.
Definition at line 77 of file cmtkDataTypeTraits.h.
static float cmtk::DataTypeTraits< float >::ChoosePaddingValue | ( | ) | [inline, static] |
Return PADDING data value (i.e.
Inf) for the given type.
Definition at line 97 of file cmtkDataTypeTraits.h.
static float cmtk::DataTypeTraits< float >::Convert | ( | const T | value, |
const bool | paddingFlag = false , |
||
const float | paddingData = 0 |
||
) | [inline, static] |
Return given value converted (and rounded) to discrete type.
Definition at line 84 of file cmtkDataTypeTraits.h.
static ScalarDataType cmtk::DataTypeTraits< float >::GetScalarDataType | ( | ) | [inline, static] |
Get the scalar type ID constant for this type.
Definition at line 72 of file cmtkDataTypeTraits.h.
References cmtk::TYPE_FLOAT.
const ScalarDataType cmtk::DataTypeTraits< float >::DataTypeID = TYPE_FLOAT [static] |
Definition at line 74 of file cmtkDataTypeTraits.h.