|
DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Abstract base class to handle monochrome pixel data. More...
Inheritance diagram for DiMonoPixel:Public Member Functions | |
| DiMonoPixel (const unsigned long count) | |
| constructor | |
| DiMonoPixel (const DiInputPixel *pixel, DiMonoModality *modality) | |
| constructor | |
| DiMonoPixel (DiMonoOutputPixel *pixel, DiMonoModality *modality) | |
| constructor | |
| virtual | ~DiMonoPixel () |
| destructor | |
| int | getPlanes () const |
| get number of planes | |
| virtual int | getMinMaxValues (double &min, double &max) const =0 |
| get minimum and maximum pixel values (abstract) | |
| virtual int | getMinMaxWindow (const int idx, double ¢er, double &width)=0 |
| get automatically computed min-max window (abstract) | |
| virtual int | getRoiWindow (const unsigned long left_pos, const unsigned long top_pos, const unsigned long width, const unsigned long height, const unsigned long columns, const unsigned long rows, const unsigned long frame, double &voiCenter, double &voiWidth)=0 |
| get automatically computed Region of Interest (ROI) window (abstract) | |
| virtual int | getHistogramWindow (const double thresh, double ¢er, double &width)=0 |
| get automatically computed histogram window (abstract) | |
| unsigned int | getBits () const |
| get number of bits per pixel | |
| double | getAbsMinimum () const |
| get absolute minimum pixel value. | |
| double | getAbsMaximum () const |
| get absolute maximum pixel value. | |
| double | getAbsMaxRange () const |
| get absolute pixel range | |
| const char * | getModalityLutExplanation () const |
| get modality LUT explanation string | |
| DiMonoModality * | addReferenceToModality () |
| add a reference to the internally managed modality transform object | |
| int | isPotentiallySigned () const |
| check whether pixel data is 'potentially' signed. | |
Protected Member Functions | |
| DiMonoPixel (const DiPixel *pixel, DiMonoModality *modality) | |
| constructor | |
| DiMonoPixel (const DiMonoPixel *pixel, const unsigned long count) | |
| constructor | |
Protected Attributes | |
| DiMonoModality * | Modality |
| pointer to modality transform object | |
Private Member Functions | |
| DiMonoPixel (const DiMonoPixel &) | |
| DiMonoPixel & | operator= (const DiMonoPixel &) |
Abstract base class to handle monochrome pixel data.
| DiMonoPixel::DiMonoPixel | ( | const unsigned long | count | ) |
constructor
| count | number of pixels |
| DiMonoPixel::DiMonoPixel | ( | const DiInputPixel * | pixel, |
| DiMonoModality * | modality | ||
| ) |
constructor
| pixel | pointer to input pixel data |
| modality | pointer to object managing modality transform |
| DiMonoPixel::DiMonoPixel | ( | DiMonoOutputPixel * | pixel, |
| DiMonoModality * | modality | ||
| ) |
constructor
| pixel | pointer to output pixel data used for intermediate representation |
| modality | pointer to object managing modality transform |
| DiMonoPixel::DiMonoPixel | ( | const DiPixel * | pixel, |
| DiMonoModality * | modality | ||
| ) | [protected] |
constructor
| pixel | pointer to intermediate pixel data (not necessarily monochrome) |
| modality | pointer to object managing modality transform |
| DiMonoPixel::DiMonoPixel | ( | const DiMonoPixel * | pixel, |
| const unsigned long | count | ||
| ) | [protected] |
constructor
| pixel | pointer to intermediate monochrome pixel data |
| count | number of pixels |
add a reference to the internally managed modality transform object
| double DiMonoPixel::getAbsMaximum | ( | ) | const [inline] |
get absolute maximum pixel value.
The result depends on former transforms.
| double DiMonoPixel::getAbsMaxRange | ( | ) | const [inline] |
get absolute pixel range
| double DiMonoPixel::getAbsMinimum | ( | ) | const [inline] |
get absolute minimum pixel value.
The result depends on former transforms.
| unsigned int DiMonoPixel::getBits | ( | ) | const [inline] |
get number of bits per pixel
| virtual int DiMonoPixel::getHistogramWindow | ( | const double | thresh, |
| double & | center, | ||
| double & | width | ||
| ) | [pure virtual] |
get automatically computed histogram window (abstract)
| thresh | ignore certain percentage of pixels at lower and upper boundaries |
| center | reference to storage area for window center value |
| width | reference to storage area for window width value |
Implemented in DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| virtual int DiMonoPixel::getMinMaxValues | ( | double & | min, |
| double & | max | ||
| ) | const [pure virtual] |
get minimum and maximum pixel values (abstract)
| min | reference to storage area for minimum pixel value |
| max | reference to storage area for maximum pixel value |
Implemented in DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| virtual int DiMonoPixel::getMinMaxWindow | ( | const int | idx, |
| double & | center, | ||
| double & | width | ||
| ) | [pure virtual] |
get automatically computed min-max window (abstract)
| idx | ignore global min/max pixel values if > 0 |
| center | reference to storage area for window center value |
| width | reference to storage area for window width value |
Implemented in DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| const char* DiMonoPixel::getModalityLutExplanation | ( | ) | const [inline] |
get modality LUT explanation string
| int DiMonoPixel::getPlanes | ( | ) | const [inline, virtual] |
| virtual int DiMonoPixel::getRoiWindow | ( | const unsigned long | left_pos, |
| const unsigned long | top_pos, | ||
| const unsigned long | width, | ||
| const unsigned long | height, | ||
| const unsigned long | columns, | ||
| const unsigned long | rows, | ||
| const unsigned long | frame, | ||
| double & | voiCenter, | ||
| double & | voiWidth | ||
| ) | [pure virtual] |
get automatically computed Region of Interest (ROI) window (abstract)
| left_pos | x-coordinate of the top left-hand corner of the ROI (starting from 0) |
| top_pos | y-coordinate of the top left-hand corner of the ROI (starting from 0) |
| width | width in pixels of the rectangular ROI (minimum: 1) |
| height | height in pixels of the rectangular ROI (minimum: 1) |
| columns | number of columns (width) of the associated image |
| rows | number of rows (height) of the associated image |
| frame | index of the frame to be used for the calculation |
| voiCenter | reference to storage area for window center value |
| voiWidth | reference to storage area for window width value |
Implemented in DiMonoPixelTemplate< T >, and DiMonoPixelTemplate< T3 >.
| int DiMonoPixel::isPotentiallySigned | ( | ) | const [inline] |
check whether pixel data is 'potentially' signed.
This check is necessary to interpret possibly folowing LUT descriptors correctly (see supplement 33)