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 | |
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 | |
static unsigned int | rangeToBits (double minvalue, double maxvalue) |
calculate number of bits which are necessary to store the specified value range | |
static EP_Representation | determineRepresentation (double minvalue, double maxvalue) |
determine integer representation which is necessary to store values in the specified range | |
static void | setDebugLevel (const int level) |
set the debug level to the specified value | |
static int | getDebugLevel () |
get the current debug level | |
static int | checkDebugLevel (const int level) |
check whether specified debug level is set | |
Static Public Attributes | |
static const int | DL_NoMessages |
debug level: display no messages | |
static const int | DL_Errors |
debug level: display error messages | |
static const int | DL_Warnings |
debug level: display warning messages | |
static const int | DL_Informationals |
debug level: display informational messages | |
static const int | DL_DebugMessages |
debug level: display debug messages | |
Static Private Attributes | |
static OFGlobal< int > | DebugLevel |
debug level defining the verboseness of the image toolkit |
Class comprising several global functions and constants.
introduced to avoid problems with naming convention
Definition at line 312 of file diutils.h.
static int DicomImageClass::checkDebugLevel | ( | const int | level | ) | [inline, static] |
check whether specified debug level is set
level | debug levelto be checked |
Definition at line 396 of file diutils.h.
References DebugLevel, and OFGlobal< T >::get().
Referenced by DiInputPixelTemplate< T1, T2 >::convert(), DiHSVPixelTemplate< T1, T2 >::convertValue(), DiMonoOutputPixelTemplate< T1, T2, T3 >::createDisplayLUT(), DiColorFlipTemplate< T >::DiColorFlipTemplate(), DiColorRotateTemplate< T >::DiColorRotateTemplate(), DiColorScaleTemplate< T >::DiColorScaleTemplate(), DiFlipTemplate< T >::DiFlipTemplate(), DiMonoFlipTemplate< T >::DiMonoFlipTemplate(), DiMonoRotateTemplate< T >::DiMonoRotateTemplate(), DiMonoScaleTemplate< T >::DiMonoScaleTemplate(), DiPalettePixelTemplate< T1, T2, T3 >::DiPalettePixelTemplate(), DiRotateTemplate< T >::DiRotateTemplate(), DiYBR422PixelTemplate< T1, T2 >::DiYBR422PixelTemplate(), DiYBRPart422PixelTemplate< T1, T2 >::DiYBRPart422PixelTemplate(), DiScaleTemplate< T >::expandPixel(), DiMonoPixelTemplate< T3 >::getHistogramWindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::initOptimizationLUT(), DiMonoInputPixelTemplate< T1, T2, T3 >::initOptimizationLUT(), DiScaleTemplate< T >::interpolatePixel(), DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(), DiScaleTemplate< T >::reducePixel(), DiMonoInputPixelTemplate< T1, T2, T3 >::rescale(), DiScaleTemplate< T >::scaleData(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().
static EP_Representation DicomImageClass::determineRepresentation | ( | double | minvalue, | |
double | maxvalue | |||
) | [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 int DicomImageClass::getDebugLevel | ( | ) | [inline, static] |
get the current debug level
Definition at line 385 of file diutils.h.
References DebugLevel, and OFGlobal< T >::get().
static unsigned long DicomImageClass::maxval | ( | const int | mv_bits, | |
const unsigned long | mv_pos = 1 | |||
) | [inline, static] |
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) |
Definition at line 324 of file diutils.h.
Referenced by DiYBRPart422PixelTemplate< T1, T2 >::convert(), DiYBR422PixelTemplate< T1, T2 >::convert(), DiYBRPixelTemplate< T1, T2 >::convert(), DiRGBPixelTemplate< T1, T2 >::convert(), DiHSVPixelTemplate< T1, T2 >::convert(), DiColorOutputPixelTemplate< T1, T2 >::convert(), DiCMYKPixelTemplate< T1, T2 >::convert(), DiARGBPixelTemplate< T1, T2, T3 >::convert(), DiColorPixelTemplate< T3 >::createAWTBitmap(), DiColorPixelTemplate< T3 >::createDIB(), DiInputPixelTemplate< T1, T2 >::DiInputPixelTemplate(), DiBaseLUT::getAbsMaxRange(), DiScaleTemplate< T >::interpolatePixel(), DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(), and DiMonoScaleTemplate< T >::scale().
static unsigned int DicomImageClass::rangeToBits | ( | double | minvalue, | |
double | maxvalue | |||
) | [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 |
static void DicomImageClass::setDebugLevel | ( | const int | level | ) | [inline, static] |
set the debug level to the specified value
level | debug level to be set |
Definition at line 376 of file diutils.h.
References DebugLevel, and OFGlobal< T >::set().
static unsigned int DicomImageClass::tobits | ( | unsigned long | tb_value, | |
const unsigned long | tb_pos = 1 | |||
) | [inline, static] |