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 int | isRepresentationSigned (EP_Representation repres) |
| determine whether integer representation is signed or unsigned | |
| static unsigned int | getRepresentationBits (EP_Representation repres) |
| determine number of bits used for a particular integer representation | |
| static EP_Representation | determineRepresentation (double minvalue, double maxvalue) |
| determine integer representation which is necessary to store values in the specified range | |
introduced to avoid problems with naming convention
Definition at line 361 of file diutils.h.
| 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 373 of file diutils.h.
Referenced by DiScaleTemplate< T >::bicubicPixel(), 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::tobits | ( | unsigned long | tb_value, | |
| const unsigned long | tb_pos = 1 | |||
| ) | [inline, static] |
| 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 int DicomImageClass::isRepresentationSigned | ( | EP_Representation | repres | ) | [static] |
determine whether integer representation is signed or unsigned
| repres | integer representation (enum) to be checked |
| static unsigned int DicomImageClass::getRepresentationBits | ( | EP_Representation | repres | ) | [static] |
determine number of bits used for a particular integer representation
| repres | integer representation (enum) to be checked |
| 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 |