Inheritance diagram for DiMonoImage:
Public Member Functions | |
DiMonoImage (const DiDocument *docu, const EI_Status status) | |
constructor | |
DiMonoImage (const DiDocument *docu, const EI_Status status, const double slope, const double intercept) | |
constructor, rescale | |
DiMonoImage (const DiDocument *docu, const EI_Status status, const DcmUnsignedShort &data, const DcmUnsignedShort &descriptor, const DcmLongString *explanation) | |
constructor, modality LUT | |
virtual | ~DiMonoImage () |
destructor | |
int | getMinMaxValues (double &min, double &max, const int mode) const |
get minimum and maximum pixel values. | |
DiDisplayFunction * | getDisplayFunction () const |
get display function | |
int | setDisplayFunction (DiDisplayFunction *display) |
set display function | |
int | setNoDisplayFunction () |
set no display function. | |
int | setNoVoiTransformation () |
unset all VOI transformations (windows and LUTs). | |
int | deleteDisplayLUT (const int bits) |
delete specified display LUT(s) | |
int | isValueUnused (const unsigned long value) |
check whether given output value is unused | |
int | convertPValueToDDL (const Uint16 pvalue, Uint16 &ddl, const int bits) |
convert P-value to DDL. | |
int | setMinMaxWindow (const int idx=1) |
set automatically calculated minimum/maximum window. | |
int | setRoiWindow (const unsigned long left_pos, const unsigned long top_pos, const unsigned long width, const unsigned long height, const unsigned long frame) |
set automatically calculated VOI window for the specified Region of Interest (ROI). | |
int | setHistogramWindow (const double thresh) |
set automatically calculated histogram window. | |
int | setWindow (const unsigned long pos=0) |
set specified window (given by index to window width/center sequence stored in image file). | |
int | setWindow (const double center, const double width, const char *explanation=NULL) |
set specified window (given by window width and center). | |
int | getWindow (double ¢er, double &width) |
get current window center and width values | |
unsigned long | getWindowCount () const |
get number of VOI windows (stored in image file) | |
int | setVoiLut (const DcmUnsignedShort &data, const DcmUnsignedShort &descriptor, const DcmLongString *explanation, const OFBool ignoreDepth=OFFalse) |
set VOI LUT (given by dcmdata elements). | |
int | setVoiLut (const unsigned long pos, const OFBool ignoreDepth=OFFalse) |
set VOI LUT (given by index to VOI LUT sequence stored in image file). | |
unsigned long | getVoiLutCount () const |
get number of VOI LUTs (stored in image file) | |
const char * | getVoiTransformationExplanation () const |
get description of active VOI transformation | |
const char * | getVoiWindowExplanation (const unsigned long pos, OFString &explanation) const |
get description of specified VOI window (stored in the image file) | |
const char * | getVoiLutExplanation (const unsigned long pos, OFString &explanation) const |
get description of specified VOI LUT (stored in the image file) | |
const char * | getModalityLutExplanation () const |
get description of performed modality LUT transformation | |
int | setHardcopyParameters (const unsigned int min, const unsigned int max, const unsigned int reflect, const unsigned int illumin) |
set hardcopy parameters. | |
ES_PresentationLut | getPresentationLutShape () const |
get shape for presentation transformation. | |
int | setPresentationLutShape (const ES_PresentationLut shape) |
set shape for presentation transformation. | |
int | setPresentationLut (const DcmUnsignedShort &data, const DcmUnsignedShort &descriptor, const DcmLongString *explanation=NULL, const OFBool ignoreDepth=OFFalse) |
set LUT for presentation transformation. | |
int | setInversePresentationLut (const DcmUnsignedShort &data, const DcmUnsignedShort &descriptor, const OFBool ignoreDepth=OFFalse) |
set inverse LUT for presentation transformation. | |
const char * | getPresentationLutExplanation () const |
get description of active presentation LUT | |
int | addOverlay (const unsigned int group, const signed int left_pos, const signed int top_pos, const unsigned int columns, const unsigned int rows, const DcmOverlayData &data, const DcmLongString &label, const DcmLongString &description, const EM_Overlay mode) |
add specified plane to group of additional overlay planes. | |
int | removeAllOverlays () |
remove all additional overlay planes | |
DiOverlay * | getOverlayPtr (const unsigned int idx) |
get pointer to specified overlay managing object | |
DiMonoImage * | getMonoImagePtr () |
get pointer to current monochrome image (this) | |
int | flip (const int horz, const int vert) |
flip current image (horizontally and/or vertically) | |
int | rotate (const int degree) |
rotate current image (by steps of 90 degrees) | |
virtual int | getBits (const int bits=0) const |
get number of bits per sample. | |
virtual unsigned long | getOutputDataSize (const int bits=0) const |
get number of bytes required for the rendered output of a single frame | |
virtual const void * | getOutputData (const unsigned long frame, const int bits, const int planar=0)=0 |
get pixel data with specified format. | |
virtual int | getOutputData (void *buffer, const unsigned long size, const unsigned long frame, const int bits, const int planar=0)=0 |
get pixel data with specified format. | |
const void * | getOutputPlane (const int dummy) const |
get pixel data of specified plane. | |
void | deleteOutputData () |
delete internally handled output memory buffer Save memory if data is no longer needed. | |
const void * | getOverlayData (const unsigned long frame, const unsigned int plane, unsigned int &left_pos, unsigned int &top_pos, unsigned int &width, unsigned int &height, EM_Overlay &mode, const unsigned int idx, const int bits=8, const Uint16 fore=0xff, const Uint16 back=0x0) |
create bitmap for specified overlay plane. | |
const void * | getFullOverlayData (const unsigned long frame, const unsigned int plane, unsigned int &width, unsigned int &height, const unsigned int idx, const int bits=8, const Uint16 fore=0xff, const Uint16 back=0x0) |
create bitmap for specified overlay plane. | |
void | deleteOverlayData () |
delete buffer for overlay plane data. | |
unsigned long | create6xxx3000OverlayData (Uint8 *&buffer, const unsigned int plane, unsigned int &width, unsigned int &height, unsigned long &frames, const unsigned int idx=0) |
create bitmap for specified overlay plane and store it in (6xxx,3000) format. | |
const DiPixel * | getInterData () const |
get pointer to intermediate pixel data representation | |
const DiMonoPixel * | getMonoInterData () const |
get pointer to intermediate pixel data representation | |
unsigned long | createDIB (void *&data, const unsigned long size, const unsigned long frame, const int bits, const int upsideDown, const int padding=1) |
create true color (24/32 bit) or palette (8 bit) bitmap for MS Windows. | |
unsigned long | createAWTBitmap (void *&data, const unsigned long frame, const int bits) |
create true color (32 bit) or palette (8 bit) bitmap for Java (AWT default format). | |
DiImage * | createOutputImage (const unsigned long frame, const int bits) |
create new single frame DiImage with applied grayscale transformations. | |
int | writeImageToDataset (DcmItem &dataset, const int mode) |
write current image and related attributes to DICOM dataset. | |
int | writePPM (ostream &stream, const unsigned long frame, const int bits) |
write pixel data to PPM file. | |
int | writePPM (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to PPM file. | |
int | writeRawPPM (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to raw PPM file | |
int | writeBMP (FILE *stream, const unsigned long frame, const int bits) |
write pixel data to BMP file | |
Static Public Member Functions | |
static void * | createPackedBitmap (const void *buffer, const unsigned long size, const unsigned long count, const int alloc, const int stored) |
create packed bitmap (e.g. | |
Protected Member Functions | |
DiMonoImage (const DiDocument *image, const EI_Status status, const char dummy) | |
constructor | |
DiMonoImage (const DiMonoImage *image, const unsigned long fstart, const unsigned long fcount) | |
constructor, copy | |
DiMonoImage (const DiColorImage *image, const double red, const double green, const double blue) | |
constructor, convert color images to monochrome | |
DiMonoImage (const DiMonoImage *image, const signed long left_pos, const signed long top_pos, const Uint16 src_cols, const Uint16 src_rows, const Uint16 dest_cols, const Uint16 dest_rows, const int interpolate, const int aspect, const Uint16 pvalue) | |
constructor, scale/clip | |
DiMonoImage (const DiMonoImage *image, const int horz, const int vert) | |
constructor, flip | |
DiMonoImage (const DiMonoImage *image, const int degree) | |
constructor, rotate | |
DiMonoImage (const DiMonoImage *image, DiMonoOutputPixel *pixel, const unsigned long frame, const int stored, const int alloc) | |
constructor, createMonoOutput | |
void | Init (DiMonoModality *modality) |
initialize internal data structures and member variables | |
void | InitUint8 (DiMonoModality *modality) |
initialize internal data structures (for Uint8) | |
void | InitSint8 (DiMonoModality *modality) |
initialize internal data structures (for Sint8) | |
void | InitUint16 (DiMonoModality *modality) |
initialize internal data structures (for Uint16) | |
void | InitSint16 (DiMonoModality *modality) |
initialize internal data structures (for Sint16) | |
void | InitUint32 (DiMonoModality *modality) |
initialize internal data structures (for Uint32) | |
void | InitSint32 (DiMonoModality *modality) |
initialize internal data structures (for Sint32) | |
int | checkInterData (const int mode=1) |
check intermediate pixel representation for consistency | |
virtual void | updateImagePixelModuleAttributes (DcmItem &dataset) |
update Image Pixel Module attributes in the given dataset. | |
const void * | getData (void *buffer, const unsigned long size, const unsigned long frame, int bits, const int planar, const int negative) |
get pixel data with specified format. | |
void | getDataUint8 (void *buffer, DiDisplayFunction *disp, const int samples, const unsigned long frame, const int bits, const Uint32 low, const Uint32 high) |
get pixel data with specified format for Uint8 input (helper function). | |
void | getDataSint8 (void *buffer, DiDisplayFunction *disp, const int samples, const unsigned long frame, const int bits, const Uint32 low, const Uint32 high) |
get pixel data with specified format for Sint8 input (helper function). | |
void | getDataUint16 (void *buffer, DiDisplayFunction *disp, const int samples, const unsigned long frame, const int bits, const Uint32 low, const Uint32 high) |
get pixel data with specified format for Uint16 input (helper function). | |
void | getDataSint16 (void *buffer, DiDisplayFunction *disp, const int samples, const unsigned long frame, const int bits, const Uint32 low, const Uint32 high) |
get pixel data with specified format for Sint16 input (helper function). | |
void | getDataUint32 (void *buffer, DiDisplayFunction *disp, const int samples, const unsigned long frame, const int bits, const Uint32 low, const Uint32 high) |
get pixel data with specified format for Uint32 input (helper function). | |
void | getDataSint32 (void *buffer, DiDisplayFunction *disp, const int samples, const unsigned long frame, const int bits, const Uint32 low, const Uint32 high) |
get pixel data with specified format for Sint32 input (helper function). | |
int | createLinODPresentationLut (const unsigned long count, const int bits) |
create a presentation look-up table converting the pixel data which is linear to Optical Density to DDLs of the softcopy device (used to display print images on screen). | |
Protected Attributes | |
double | WindowCenter |
center of current VOI-window | |
double | WindowWidth |
width of current VOI-window | |
unsigned long | WindowCount |
number of stored VOI-windows | |
unsigned long | VoiLutCount |
number of stored VOU-LUTs | |
int | ValidWindow |
true, if current VOI-window is valid | |
OFString | VoiExplanation |
free text explanation of current VOI transformation | |
ES_PresentationLut | PresLutShape |
presentation LUT shape (identity or inverse) | |
unsigned int | MinDensity |
minimum density of a print-out (in hundreds of Optical Density) | |
unsigned int | MaxDensity |
maximum density of a print-out (ditto) | |
unsigned int | Reflection |
reflected ambient light (in candela per squaremeter) | |
unsigned int | Illumination |
illumination (ditto) | |
DiOverlay * | Overlays [2] |
points to associated overlay-objects ([0] = built-in, [1] = additional) | |
DiLookupTable * | VoiLutData |
points to associated VOI-LUT-object | |
DiLookupTable * | PresLutData |
points to associated presentation-LUT-object | |
DiMonoPixel * | InterData |
points to intermediate pixel data representation (object) | |
DiDisplayFunction * | DisplayFunction |
points to grayscale standard display function (only referenced!) | |
Private Member Functions | |
DiMonoImage (const DiMonoImage &) | |
DiMonoImage & | operator= (const DiMonoImage &) |
Private Attributes | |
DiMonoOutputPixel * | OutputData |
points to current output data (object) | |
void * | OverlayData |
points to current overlay plane data (pixel array) |
Definition at line 62 of file dimoimg.h.
|
constructor
|
|
constructor, rescale
|
|
constructor, modality LUT
|
|
constructor
|
|
constructor, copy
|
|
constructor, convert color images to monochrome
|
|
constructor, scale/clip
|
|
constructor, flip
|
|
constructor, rotate
|
|
constructor, createMonoOutput
|
|
add specified plane to group of additional overlay planes. replaces old overlay plane if group number already exists.
Referenced by DicomImage::addOverlay(). |
|
check intermediate pixel representation for consistency
|
|
convert P-value to DDL. conversion uses display LUT if present, linear scaling otherwise.
Referenced by DicomImage::convertPValueToDDL(). |
|
create bitmap for specified overlay plane and store it in (6xxx,3000) format. (1 bit allocated and stored, foreground color is 1, background color is 0, data is 16 bit padded - even length) memory is not handled internally - must be deleted from calling program.
Referenced by DicomImage::create6xxx3000OverlayData(). |
|
create true color (32 bit) or palette (8 bit) bitmap for Java (AWT default format). Memory is not handled internally - must be deleted from calling program.
Implements DiImage. |
|
create true color (24/32 bit) or palette (8 bit) bitmap for MS Windows. memory is not handled internally - must be deleted from calling program.
Implements DiImage. |
|
create a presentation look-up table converting the pixel data which is linear to Optical Density to DDLs of the softcopy device (used to display print images on screen).
|
|
create new single frame DiImage with applied grayscale transformations. The method getOutputData() is used internally for the new bitmap.
|
|
create packed bitmap (e.g. 12/16 bit -> 12/12 bit for DICOM printers). Memory is not handled internally - must be deleted from calling program.
Referenced by DicomImage::create12BitPackedBitmap(). |
|
delete specified display LUT(s)
Definition at line 162 of file dimoimg.h. References DiDisplayFunction::deleteLookupTable(), and DisplayFunction. Referenced by DicomImage::deleteDisplayLUT(). |
|
delete buffer for overlay plane data. Save memory if data is no longer needed. Referenced by DicomImage::deleteOverlayData(). |
|
flip current image (horizontally and/or vertically)
Implements DiImage. |
|
get number of bits per sample. If the optional parameter is specified the value will be checked and in any case a valid value will be returned.
Reimplemented from DiImage. Definition at line 512 of file dimoimg.h. References DiImage::BitsPerSample. |
|
get pixel data with specified format. (memory is handled externally)
|
|
get pixel data with specified format for Sint16 input (helper function). (memory is handled externally)
|
|
get pixel data with specified format for Sint32 input (helper function). (memory is handled externally)
|
|
get pixel data with specified format for Sint8 input (helper function). (memory is handled externally)
|
|
get pixel data with specified format for Uint16 input (helper function). (memory is handled externally)
|
|
get pixel data with specified format for Uint32 input (helper function). (memory is handled externally)
|
|
get pixel data with specified format for Uint8 input (helper function). (memory is handled externally)
|
|
get display function
Definition at line 125 of file dimoimg.h. References DisplayFunction. Referenced by DicomImage::getDisplayFunction(). |
|
create bitmap for specified overlay plane. (up to 16 bits per pixel with two values: fore and back)
Referenced by DicomImage::getFullOverlayData(). |
|
get pointer to intermediate pixel data representation
Implements DiImage. Definition at line 653 of file dimoimg.h. References InterData. |
|
get minimum and maximum pixel values. the resulting pixel values are stored in 'double' variables to avoid problems with different number ranges, limited to monochrome images
Referenced by DicomImage::getMinMaxValues(). |
|
get description of performed modality LUT transformation
Definition at line 346 of file dimoimg.h. References DiMonoPixel::getModalityLutExplanation(), and InterData. Referenced by DicomImage::getModalityLutExplanation(). |
|
get pointer to current monochrome image (this)
Reimplemented from DiImage. |
|
get pointer to intermediate pixel data representation
Definition at line 662 of file dimoimg.h. References InterData. |
|
get pixel data with specified format. (memory is handled externally)
Implements DiImage. Implemented in DiMono1Image, and DiMono2Image. |
|
get pixel data with specified format. (memory is handled internally)
Implements DiImage. Implemented in DiMono1Image, and DiMono2Image. |
|
get number of bytes required for the rendered output of a single frame
Implements DiImage. |
|
get pixel data of specified plane. (memory is handled internally)
Implements DiImage. |
|
create bitmap for specified overlay plane. (up to 16 bits per pixel with two values: fore and back)
Referenced by DicomImage::getOverlayData(). |
|
get pointer to specified overlay managing object
Reimplemented from DiImage. Definition at line 466 of file dimoimg.h. References Overlays. |
|
get description of active presentation LUT
Definition at line 423 of file dimoimg.h. References DiBaseLUT::getExplanation(), and PresLutData. Referenced by DicomImage::getPresentationLutExplanation(). |
|
get shape for presentation transformation. possible values are: ESP_Default, ESP_Identity, ESP_Inverse, ESP_LinOD If a presentation LUT is currently active ESP_Default is always returned.
Referenced by DicomImage::getPresentationLutShape(). |
|
get number of VOI LUTs (stored in image file)
Definition at line 308 of file dimoimg.h. References VoiLutCount. Referenced by DicomImage::getVoiLutCount(). |
|
get description of specified VOI LUT (stored in the image file)
Referenced by DicomImage::getVoiLutExplanation(). |
|
get description of active VOI transformation
Definition at line 317 of file dimoimg.h. References OFString::c_str(), and VoiExplanation. Referenced by DicomImage::getVoiTransformationExplanation(). |
|
get description of specified VOI window (stored in the image file)
Referenced by DicomImage::getVoiWindowExplanation(). |
|
get current window center and width values
Referenced by DicomImage::getWindow(). |
|
get number of VOI windows (stored in image file)
Definition at line 271 of file dimoimg.h. References WindowCount. Referenced by DicomImage::getWindowCount(). |
|
initialize internal data structures and member variables
|
|
initialize internal data structures (for Sint16)
|
|
initialize internal data structures (for Sint32)
|
|
initialize internal data structures (for Sint8)
|
|
initialize internal data structures (for Uint16)
|
|
initialize internal data structures (for Uint32)
|
|
initialize internal data structures (for Uint8)
|
|
check whether given output value is unused
Definition at line 173 of file dimoimg.h. References DiMonoOutputPixel::isUnused(), and OutputData. Referenced by DicomImage::isOutputValueUnused(). |
|
remove all additional overlay planes
Referenced by DicomImage::removeAllOverlays(). |
|
rotate current image (by steps of 90 degrees)
Reimplemented from DiImage. |
|
set display function
Referenced by DicomImage::setDisplayFunction(). |
|
set hardcopy parameters. (used to display LinOD images)
Referenced by DicomImage::setHardcopyParameters(). |
|
set automatically calculated histogram window. possibly active VOI LUT is implicitly disabled.
Referenced by DicomImage::setHistogramWindow(). |
|
set inverse LUT for presentation transformation. this LUT transform is e.g. used for DICOM print (12->8, 8->12 bit) possibly active presentation LUT will not be considered !
Referenced by DicomImage::setInversePresentationLut(). |
|
set automatically calculated minimum/maximum window. possibly active VOI LUT is implicitly disabled.
Referenced by DicomImage::setMinMaxWindow(). |
|
set no display function. disables display function transformation, object is not deleted!
Referenced by DicomImage::setNoDisplayFunction(). |
|
unset all VOI transformations (windows and LUTs). only applicable for monochrome images
Referenced by DicomImage::setNoVoiTransformation(). |
|
set LUT for presentation transformation. possibly active presentation LUT is implicitly disabled.
Referenced by DicomImage::setPresentationLut(). |
|
set shape for presentation transformation. possibly active presentation LUT is implicitly disabled.
Referenced by DicomImage::setPresentationLutShape(). |
|
set automatically calculated VOI window for the specified Region of Interest (ROI). The ROI is specified by means of a rectangle (left_pos, top_pos, width, height). Possibly active VOI LUT is implicitly disabled.
Referenced by DicomImage::setRoiWindow(). |
|
set VOI LUT (given by index to VOI LUT sequence stored in image file). possibly active window/center is implicitly disabled.
|
|
set VOI LUT (given by dcmdata elements). possibly active window/center is implicitly disabled.
Referenced by DicomImage::setVoiLut(). |
|
set specified window (given by window width and center). possibly active VOI LUT is implicitly disabled.
|
|
set specified window (given by index to window width/center sequence stored in image file). possibly active VOI LUT is implicitly disabled.
Referenced by DicomImage::setWindow(). |
|
update Image Pixel Module attributes in the given dataset. Removes possibly existing embedded overlay planes and replaces any present modality transformation by a linear rescale/slope. Used in writeXXXToDataset() routines.
Reimplemented from DiImage. |
|
write pixel data to BMP file
Reimplemented from DiImage. |
|
write current image and related attributes to DICOM dataset.
Implements DiImage. |
|
write pixel data to PPM file. pixel data is written in ASCII format.
Implements DiImage. |
|
write pixel data to PPM file. pixel data is written in ASCII format.
Implements DiImage. |
|
write pixel data to raw PPM file
Implements DiImage. |