Inheritance diagram for DiMonoOutputPixelTemplate< T1, T2, T3 >:
Public Member Functions | |
DiMonoOutputPixelTemplate (void *buffer, const DiMonoPixel *pixel, DiOverlay *overlays[2], const DiLookupTable *vlut, const DiLookupTable *plut, DiDisplayFunction *disp, const double center, const double width, const Uint32 low, const Uint32 high, const Uint16 columns, const Uint16 rows, const unsigned long frame, const unsigned long, const int pastel=0) | |
constructor | |
virtual | ~DiMonoOutputPixelTemplate () |
destructor | |
EP_Representation | getRepresentation () const |
get integer representation of output data | |
size_t | getItemSize () const |
get size of one pixel / item in the pixel array | |
const void * | getData () const |
get pointer to output pixel data | |
virtual void * | getDataPtr () |
get pointer to output pixel data | |
void | removeDataReference () |
remove reference to (internally handled) pixel data (abstract) | |
int | writePPM (ostream &stream) const |
write pixel data of selected frame to PPM/ASCII file | |
int | writePPM (FILE *stream) const |
write pixel data of selected frame to PPM/ASCII file | |
Protected Member Functions | |
void | determineUsedValues () |
examine which pixel values are actually used | |
Private Member Functions | |
void | createDisplayLUT (const DiDisplayLUT *&dlut, DiDisplayFunction *disp, const int bits) |
create a display LUT with the specified number of input bits | |
int | initOptimizationLUT (T3 *&lut, const unsigned long ocnt) |
initialize an optimization LUT if the optimization criteria is fulfilled | |
void | voilut (const DiMonoPixel *inter, const Uint32 start, const DiLookupTable *vlut, const DiLookupTable *plut, DiDisplayFunction *disp, const T3 low, const T3 high) |
apply the currently active VOI LUT to the output data | |
void | nowindow (const DiMonoPixel *inter, const Uint32 start, const DiLookupTable *plut, DiDisplayFunction *disp, const T3 low, const T3 high) |
perform linear scaling to the output data (no windowing) | |
void | window (const DiMonoPixel *inter, const Uint32 start, const DiLookupTable *plut, DiDisplayFunction *disp, const double center, const double width, const T3 low, const T3 high) |
apply the currently active VOI window to the output data | |
void | overlay (DiOverlay *overlays[2], DiDisplayFunction *disp, const Uint16 columns, const Uint16 rows, const unsigned long frame) |
apply the currently active overlay planes to the output data | |
DiMonoOutputPixelTemplate (const DiMonoOutputPixelTemplate< T1, T2, T3 > &) | |
DiMonoOutputPixelTemplate< T1, T2, T3 > & | operator= (const DiMonoOutputPixelTemplate< T1, T2, T3 > &) |
Private Attributes | |
T3 * | Data |
pointer to the storage area where the output data should be stored | |
int | DeleteData |
flag indicating whether the output data buffer should be deleted in the destructor | |
DiMonoOutputPixel * | ColorData |
Definition at line 65 of file dimoopxt.h.
|
constructor
Definition at line 90 of file dimoopxt.h. References DiMonoOutputPixel::Count, DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, DiMonoOutputPixel::FrameSize, DiBaseLUT::isValid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window(). |
|
create a display LUT with the specified number of input bits
Definition at line 267 of file dimoopxt.h. References DicomImageClass::checkDebugLevel(), DicomImageClass::DL_Informationals, DicomImageClass::DL_Warnings, DiDisplayFunction::getLookupTable(), DiBaseLUT::isValid(), and DiDisplayFunction::isValid(). Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window(). |
|
get pointer to output pixel data
Implements DiMonoOutputPixel. Definition at line 174 of file dimoopxt.h. References DiMonoOutputPixelTemplate< T1, T2, T3 >::ColorData, DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, and DiMonoOutputPixel::getData(). |
|
get pointer to output pixel data
Implements DiMonoOutputPixel. Definition at line 183 of file dimoopxt.h. References DiMonoOutputPixelTemplate< T1, T2, T3 >::ColorData, DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, and DiMonoOutputPixel::getDataPtr(). |
|
get size of one pixel / item in the pixel array
Implements DiMonoOutputPixel. Definition at line 165 of file dimoopxt.h. References DiMonoOutputPixelTemplate< T1, T2, T3 >::ColorData, and DiMonoOutputPixel::getItemSize(). |
|
get integer representation of output data
Implements DiMonoOutputPixel. Definition at line 156 of file dimoopxt.h. References DiPixelRepresentationTemplate< T >::getRepresentation(). |
|
initialize an optimization LUT if the optimization criteria is fulfilled
Definition at line 299 of file dimoopxt.h. References DicomImageClass::checkDebugLevel(), DiMonoOutputPixel::Count, and DicomImageClass::DL_Informationals. Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window(). |
|
|
apply the currently active overlay planes to the output data
Definition at line 1011 of file dimoopxt.h. References DicomImageClass::checkDebugLevel(), DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, DicomImageClass::DL_Warnings, DiOverlayPlane::getBottom(), DiMonoOutputPixel::getCount(), DiOverlayPlane::getForeground(), DiOverlayPlane::getLeft(), DiOverlay::getLeft(), DiDisplayFunction::getLookupTable(), DiOverlayPlane::getMode(), DiOverlayPlane::getNextBit(), DiOverlay::getPlane(), DiOverlayPlane::getPValue(), DiOverlayPlane::getRight(), DiOverlayPlane::getThreshold(), DiOverlayPlane::getTop(), DiOverlay::getTop(), DiBaseLUT::getValue(), DiBaseLUT::isValid(), DiDisplayFunction::isValid(), DiOverlayPlane::isVisible(), DicomImageClass::maxval(), DiOverlayPlane::reset(), and DiOverlayPlane::setStart(). Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::DiMonoOutputPixelTemplate(). |
|
apply the currently active VOI LUT to the output data
Definition at line 346 of file dimoopxt.h. References DicomImageClass::checkDebugLevel(), DiMonoOutputPixel::Count, DiMonoOutputPixelTemplate< T1, T2, T3 >::createDisplayLUT(), DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, DicomImageClass::DL_Informationals, DiMonoOutputPixel::FrameSize, DiMonoPixel::getAbsMaxRange(), DiBaseLUT::getAbsMaxRange(), DiMonoPixel::getAbsMinimum(), DiBaseLUT::getBits(), DiBaseLUT::getCount(), DiPixel::getData(), DiBaseLUT::getFirstEntry(), DiBaseLUT::getFirstValue(), DiBaseLUT::getLastEntry(), DiBaseLUT::getLastValue(), DiBaseLUT::getMaxValue(), DiBaseLUT::getMinValue(), DiBaseLUT::getValue(), DiMonoOutputPixelTemplate< T1, T2, T3 >::initOptimizationLUT(), DiBaseLUT::isValid(), and OFBitmanipTemplate< T >::zeroMem(). Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::DiMonoOutputPixelTemplate(). |
|
apply the currently active VOI window to the output data
Definition at line 804 of file dimoopxt.h. References DicomImageClass::checkDebugLevel(), DiMonoOutputPixel::Count, DiMonoOutputPixelTemplate< T1, T2, T3 >::createDisplayLUT(), DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, DiMonoOutputPixel::FrameSize, DiBaseLUT::getAbsMaxRange(), DiMonoPixel::getAbsMaxRange(), DiMonoPixel::getAbsMinimum(), DiBaseLUT::getBits(), DiBaseLUT::getCount(), DiPixel::getData(), DiBaseLUT::getValue(), DiMonoOutputPixelTemplate< T1, T2, T3 >::initOptimizationLUT(), DiBaseLUT::isValid(), and OFBitmanipTemplate< T >::zeroMem(). Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::DiMonoOutputPixelTemplate(). |
|
write pixel data of selected frame to PPM/ASCII file
Implements DiMonoOutputPixel. Definition at line 222 of file dimoopxt.h. References DiMonoOutputPixelTemplate< T1, T2, T3 >::ColorData, DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, DiMonoOutputPixel::FrameSize, and DiMonoOutputPixel::writePPM(). |
|
write pixel data of selected frame to PPM/ASCII file
Implements DiMonoOutputPixel. Definition at line 202 of file dimoopxt.h. References DiMonoOutputPixelTemplate< T1, T2, T3 >::ColorData, DiMonoOutputPixelTemplate< T1, T2, T3 >::Data, DiMonoOutputPixel::FrameSize, and DiMonoOutputPixel::writePPM(). |