Public Member Functions | |
| DcmQuantScaleTable () | |
| constructor | |
| ~DcmQuantScaleTable () | |
| destructor | |
| DcmQuantComponent | operator[] (unsigned int idx) const |
| array look-up operation. | |
| void | createTable (unsigned long oldmaxval, unsigned long newmaxval) |
| initializes the look-up table. | |
Private Member Functions | |
| void | cleanup () |
| resets the object to the default-constructed state | |
| DcmQuantScaleTable (const DcmQuantScaleTable &src) | |
| private undefined copy constructor | |
| DcmQuantScaleTable & | operator= (const DcmQuantScaleTable &src) |
| private undefined copy assignment operator | |
Private Attributes | |
| DcmQuantComponent * | table |
| array of pixel values | |
| unsigned int | numEntries |
| number of entries in array | |
An object of this class contains a look-up table that maps image pixel values to scaled-down image pixel values.
Definition at line 48 of file diqtstab.h.
| DcmQuantComponent DcmQuantScaleTable::operator[] | ( | unsigned int | idx | ) | const [inline] |
array look-up operation.
| idx | pixel value to look up. Object must be initialized (i.e. createTable() must have been called before) and idx must be less or equal to the parameter oldmaxval passed to createTable(). |
Definition at line 71 of file diqtstab.h.
References numEntries, and table.
| void DcmQuantScaleTable::createTable | ( | unsigned long | oldmaxval, | |
| unsigned long | newmaxval | |||
| ) | [inline] |
initializes the look-up table.
| oldmaxval | maximum possible pixel value in source image | |
| newmaxval | new desired maximum value, should be < oldmaxval |
Definition at line 83 of file diqtstab.h.
References cleanup(), numEntries, and table.
Referenced by DcmQuantColorMapping< T1, T2 >::create().