OFFIS DCMTK
Version 3.6.0
|
Abstract base class to handle monochrome pixel data. More...
Public Member Functions | |
DiMonoPixel (const unsigned long count) | |
constructor More... | |
DiMonoPixel (const DiInputPixel *pixel, DiMonoModality *modality) | |
constructor More... | |
DiMonoPixel (DiMonoOutputPixel *pixel, DiMonoModality *modality) | |
constructor More... | |
virtual | ~DiMonoPixel () |
destructor | |
int | getPlanes () const |
get number of planes More... | |
virtual int | getMinMaxValues (double &min, double &max) const =0 |
get minimum and maximum pixel values (abstract) More... | |
virtual int | getMinMaxWindow (const int idx, double ¢er, double &width)=0 |
get automatically computed min-max window (abstract) More... | |
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) More... | |
virtual int | getHistogramWindow (const double thresh, double ¢er, double &width)=0 |
get automatically computed histogram window (abstract) More... | |
unsigned int | getBits () const |
get number of bits per pixel More... | |
double | getAbsMinimum () const |
get absolute minimum pixel value. More... | |
double | getAbsMaximum () const |
get absolute maximum pixel value. More... | |
double | getAbsMaxRange () const |
get absolute pixel range More... | |
const char * | getModalityLutExplanation () const |
get modality LUT explanation string More... | |
int | isPotentiallySigned () const |
check whether pixel data is 'potentially' signed. More... | |
![]() | |
DiPixel (const unsigned long count, const unsigned long inputCount=0) | |
constructor More... | |
virtual | ~DiPixel () |
destructor | |
virtual EP_Representation | getRepresentation () const =0 |
get integer representation (abstract) More... | |
virtual const void * | getData () const =0 |
get pointer to pixel data (abstract). More... | |
virtual void * | getDataPtr ()=0 |
get pointer to pixel data (abstract). More... | |
virtual void * | getDataArrayPtr ()=0 |
get pointer to array of pixel data (abstract). More... | |
unsigned long | getCount () const |
get number of pixels More... | |
unsigned long | getInputCount () const |
get number of pixels stored in the 'PixelData' element More... | |
Protected Member Functions | |
DiMonoPixel (const DiPixel *pixel, DiMonoModality *modality) | |
constructor More... | |
DiMonoPixel (const DiMonoPixel *pixel, const unsigned long count) | |
constructor More... | |
Protected Attributes | |
DiMonoModality * | Modality |
pointer to modality transform object | |
![]() | |
unsigned long | Count |
number of pixels | |
unsigned long | InputCount |
number of pixels in the input buffer | |
Private Member Functions | |
DiMonoPixel (const DiMonoPixel &) | |
DiMonoPixel & | operator= (const DiMonoPixel &) |
DiMonoPixel::DiMonoPixel | ( | const unsigned long | count | ) |
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 |
|
protected |
constructor
pixel | pointer to intermediate pixel data (not necessarily monochrome) |
modality | pointer to object managing modality transform |
|
protected |
constructor
pixel | pointer to intermediate monochrome pixel data |
count | number of pixels |
|
inline |
get absolute maximum pixel value.
The result depends on former transforms.
Definition at line 177 of file dimopx.h.
References DiMonoModality::getAbsMaximum(), and Modality.
Referenced by getAbsMaxRange(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow().
|
inline |
get absolute pixel range
Definition at line 186 of file dimopx.h.
References getAbsMaximum(), and getAbsMinimum().
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 absolute minimum pixel value.
The result depends on former transforms.
Definition at line 167 of file dimopx.h.
References DiMonoModality::getAbsMinimum(), and Modality.
Referenced by getAbsMaxRange(), isPotentiallySigned(), 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 pixel
Definition at line 157 of file dimopx.h.
References DiMonoModality::getBits(), and Modality.
Referenced by DiMonoScaleTemplate< T >::DiMonoScaleTemplate(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow().
|
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 >.
Referenced by getPlanes().
|
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 >.
Referenced by getPlanes().
|
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 >.
Referenced by getPlanes().
|
inline |
get modality LUT explanation string
Definition at line 195 of file dimopx.h.
References DiMonoModality::getExplanation(), and Modality.
Referenced by DiMonoImage::getModalityLutExplanation().
|
inlinevirtual |
get number of planes
Implements DiPixel.
Definition at line 90 of file dimopx.h.
References getHistogramWindow(), getMinMaxValues(), getMinMaxWindow(), and getRoiWindow().
|
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 >.
Referenced by getPlanes().
|
inline |
check whether pixel data is 'potentially' signed.
This check is necessary to interpret possibly folowing LUT descriptors correctly (see supplement 33)
Definition at line 206 of file dimopx.h.
References DiMonoPixel(), and getAbsMinimum().