Go to the documentation of this file.
18 #ifndef sitkPixelIDValues_h
19 #define sitkPixelIDValues_h
32 template <
typename TPixelID >
35 enum {
Result = typelist2::index_of<InstantiatedPixelIDTypeList, TPixelID >::value };
36 static constexpr
int value = typelist2::index_of<InstantiatedPixelIDTypeList, TPixelID >::value;
39 template <
typename TImageType>
47 template <
unsigned int VImageDimension>
51 static constexpr
int value = -1;
144 template <
typename PixelIDTypeList>
146 template <
typename... Ts>
165 template <
typename TPixelIDTypeList = InstantiatedPixelIDTypeList>
177 #endif // sitkPixelIDValues_h
@ sitkVectorInt8
Multi-component of signed 8 bit integer.
@ sitkInt64
Signed 64 bit integer.
SITKCommon_EXPORT std::ostream & operator<<(std::ostream &os, const EventEnum k)
@ sitkVectorUInt64
Multi-component of unsigned 64 bit integer.
@ sitkInt32
Signed 32 bit integer.
@ sitkLabelUInt16
RLE label of unsigned 16 bit integers.
@ sitkLabelUInt8
RLE label of unsigned 8 bit integers.
@ sitkInt16
Signed 16 bit integer.
@ sitkComplexFloat32
complex number of 32 bit float
@ sitkVectorInt64
Multi-component of signed 64 bit integer.
PixelIDValueEnum
Enumerated values of pixelIDs.
@ sitkVectorFloat64
Multi-component of 64 bit float.
bool TypeListHasPixelIDValue(PixelIDValueEnum match)
Check if the runtime PixelID is contained in a template parameter typelist.
@ sitkVectorUInt8
Multi-component of unsigned 8 bit integer.
@ sitkUInt16
Unsigned 16 bit integer.
const std::string SITKCommon_EXPORT GetPixelIDValueAsString(PixelIDValueType type)
@ sitkInt8
Signed 8 bit integer.
#define SITKCommon_EXPORT
@ sitkUInt32
Unsigned 32 bit integer.
@ sitkFloat64
64 bit float
@ sitkFloat32
32 bit float
@ sitkVectorUInt16
Multi-component of unsigned 16 bit integer.
static constexpr int value
static constexpr int value
static bool op(PixelIDValueEnum match)
@ sitkUInt8
Unsigned 8 bit integer.
PixelIDValueType SITKCommon_EXPORT GetPixelIDValueFromString(const std::string &enumString)
Function mapping enumeration names in std::string to values.
@ sitkVectorInt16
Multi-component of signed 16 bit integer.
@ sitkVectorUInt32
Multi-component of unsigned 32 bit integer.
@ sitkVectorInt32
Multi-component of signed 32 bit integer.
@ sitkUInt64
Unsigned 64 bit integer.
@ sitkComplexFloat64
complex number of 64 bit float
@ sitkLabelUInt32
RLE label of unsigned 32 bit integers.
@ sitkVectorFloat32
Multi-component of 32 bit float.
@ sitkLabelUInt64
RLE label of unsigned 64 bit integers.