DCMTK
Version 3.6.2
OFFIS DICOM Toolkit
|
Class comprising several global functions and constants. More...
Static Public Member Functions | |
static unsigned long | maxval (const int mv_bits, const unsigned long mv_pos=1) |
calculate maximum value which could be stored in the specified number of bits More... | |
static unsigned int | tobits (unsigned long tb_value, const unsigned long tb_pos=1) |
calculate number of bits which are necessary to store the specified value More... | |
static unsigned int | rangeToBits (double minvalue, double maxvalue) |
calculate number of bits which are necessary to store the specified value range More... | |
static int | isRepresentationSigned (EP_Representation repres) |
determine whether integer representation is signed or unsigned More... | |
static unsigned int | getRepresentationBits (EP_Representation repres) |
determine number of bits used for a particular integer representation More... | |
static EP_Representation | determineRepresentation (double minvalue, double maxvalue) |
determine integer representation which is necessary to store values in the specified range More... | |
Class comprising several global functions and constants.
introduced to avoid problems with naming convention
|
static |
determine integer representation which is necessary to store values in the specified range
minvalue | minimum value to be stored |
maxvalue | maximum value to be stored |
|
static |
determine number of bits used for a particular integer representation
repres | integer representation (enum) to be checked |
|
static |
determine whether integer representation is signed or unsigned
repres | integer representation (enum) to be checked |
|
inlinestatic |
calculate maximum value which could be stored in the specified number of bits
mv_bits | number of bits |
mv_pos | value subtracted from the maximum value (0 or 1) |
|
static |
calculate number of bits which are necessary to store the specified value range
minvalue | minimum value to be stored |
maxvalue | maximum value to be stored |
|
inlinestatic |
calculate number of bits which are necessary to store the specified value
tb_value | value to be stored |
tb_pos | value subtracted from the value (0 or 1) before converting |