DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
Base class to handle look-up tables. More...
Public Member Functions | |
DiBaseLUT (const Uint32 count=0, const Uint16 bits=0) | |
constructor More... | |
virtual | ~DiBaseLUT () |
destructor | |
Uint32 | getCount () const |
get number of LUT entries More... | |
Uint16 | getBits () const |
get number of bits per entry More... | |
Uint32 | getFirstEntry (const Uint32=0) const |
get index of first LUT entry. More... | |
Sint32 | getFirstEntry (const Sint32) const |
get index of first LUT entry. More... | |
Uint32 | getLastEntry (const Uint32=0) const |
get index of last LUT entry. More... | |
Sint32 | getLastEntry (const Sint32) const |
get index of last LUT entry. More... | |
Uint16 | getValue (const Uint16 pos) const |
get value of specified LUT entry More... | |
Uint16 | getValue (const Uint32 pos) const |
get value of specified LUT entry. More... | |
Uint16 | getValue (const Sint32 pos) const |
get value of specified LUT entry. More... | |
Uint16 | getFirstValue () const |
get value of first LUT entry. More... | |
Uint16 | getLastValue () const |
get value of last LUT entry. More... | |
const Uint16 * | getData () const |
get pointer to LUT data More... | |
Uint16 | getMinValue () const |
get minimum value of the LUT. More... | |
Uint16 | getMaxValue () const |
get maximum value of the LUT. More... | |
Uint32 | getAbsMaxRange () const |
get absolute value range of the LUT entries. More... | |
int | isValid () const |
check whether LUT is valid More... | |
const char * | getExplanation () const |
get LUT explanation string More... | |
virtual OFBool | operator== (const DiBaseLUT &lut) |
compares current LUT with specified LUT More... | |
Protected Member Functions | |
DiBaseLUT (Uint16 *buffer, const Uint32 count=0, const Uint16 bits=0) | |
constructor More... | |
int | compare (const DiBaseLUT *lut) |
compares current LUT with specified LUT More... | |
Protected Attributes | |
Uint32 | Count |
number of LUT entries | |
Uint16 | FirstEntry |
first input value mapped (FIV) | |
Uint16 | Bits |
number of bits per entry | |
Uint16 | MinValue |
minimum LUT value | |
Uint16 | MaxValue |
maximum LUT value | |
int | Valid |
status code, indicating whether LUT is valid | |
OFString | Explanation |
LUT explanation string. | |
const Uint16 * | Data |
pointer to lookup table data | |
Uint16 * | DataBuffer |
pointer to data buffer (will be deleted in the destructor) | |
Base class to handle look-up tables.
DiBaseLUT::DiBaseLUT | ( | const Uint32 | count = 0 , |
const Uint16 | bits = 0 |
||
) |
constructor
count | number of LUT entries |
bits | number of bits per entry |
|
protected |
constructor
buffer | pointer to array with LUT entries |
count | number of LUT entries |
bits | number of bits per entry |
|
protected |
compares current LUT with specified LUT
lut | LUT to be compared with the current one |
|
inline |
get absolute value range of the LUT entries.
The maximum value which could be stored with the specified bit depth is calculated.
References DicomImageClass::maxval().
Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::sigmoid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().
|
inline |
get number of bits per entry
Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::sigmoid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().
|
inline |
get number of LUT entries
Referenced by DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::sigmoid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().
|
inline |
get pointer to LUT data
|
inline |
get LUT explanation string
|
inline |
get index of first LUT entry.
First input value mapped (FIV) in LUT descriptor is US -> 16 bit unsigned. ... or the previous pixel transformation requires an unsigned LUT input value.
(#)param dummy (used to distinguish between signed and unsigned methods)
Referenced by DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inline |
get index of first LUT entry.
First input value mapped (FIV) in LUT descriptor is SS -> 16 bit signed. ... or the previous pixel transformation requires a signed LUT input value.
(#)param dummy (used to distinguish between signed and unsigned methods)
|
inline |
get value of first LUT entry.
Referenced by DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inline |
get index of last LUT entry.
FIV in LUT descriptor is US -> 16 bit unsigned. ... or the previous pixel transformation requires an unsigned LUT input value.
(#)param dummy (used to distinguish between signed and unsigned methods)
Referenced by DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inline |
get index of last LUT entry.
FIV in LUT descriptor is SS -> 16 bit signed. ... or the previous pixel transformation requires a signed LUT input value.
(#)param dummy (used to distinguish between signed and unsigned methods)
|
inline |
get value of last LUT entry.
Referenced by DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inline |
get maximum value of the LUT.
Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inline |
get minimum value of the LUT.
Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inline |
get value of specified LUT entry
pos | position in the LUT to be returned |
Referenced by DiMonoInputPixelTemplate< T1, T2, T3 >::modlut(), DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(), DiMonoOutputPixelTemplate< T1, T2, T3 >::sigmoid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().
|
inline |
get value of specified LUT entry.
FIV in LUT descriptor is US -> 16 bit unsigned. ... or the previous pixel transformation requires an unsigned LUT input value.
pos | position in the LUT to be returned |
|
inline |
get value of specified LUT entry.
FIV in LUT descriptor is SS -> 16 bit signed. ... or the previous pixel transformation requires a signed LUT input value.
pos | position in the LUT to be returned |
|
inline |
check whether LUT is valid
Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::createDisplayLUT(), DiMonoOutputPixelTemplate< T1, T2, T3 >::DiMonoOutputPixelTemplate(), DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(), DiMonoOutputPixelTemplate< T1, T2, T3 >::sigmoid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().
compares current LUT with specified LUT
lut | LUT to be compared with the current one |
Reimplemented in DiLookupTable.