Public Member Functions | |
DicomImage (const char *filename, const unsigned long flags=0, const unsigned long fstart=0, const unsigned long fcount=0) | |
constructor, open a DICOM file. | |
DicomImage (DcmObject *object, const E_TransferSyntax xfer, const unsigned long flags=0, const unsigned long fstart=0, const unsigned long fcount=0) | |
constructor, use a given DcmObject | |
DicomImage (DcmObject *object, const E_TransferSyntax xfer, const double slope, const double intercept, const unsigned long flags=0, const unsigned long fstart=0, const unsigned long fcount=0) | |
constructor, use a given DcmObject with specified rescale/slope. | |
DicomImage (DcmObject *object, E_TransferSyntax xfer, const DcmUnsignedShort &data, const DcmUnsignedShort &descriptor, const DcmLongString *explanation=NULL, const unsigned long flags=0, const unsigned long fstart=0, const unsigned long fcount=0) | |
constructor, use a given DcmObject with specified modality LUT. | |
virtual | ~DicomImage () |
destructor | |
EI_Status | getStatus () const |
get current status information | |
unsigned long | getFrameCount () const |
get number of frames. | |
unsigned long | getFirstFrame () const |
get index of first frame. | |
unsigned long | getRepresentativeFrame () const |
get index of representative frame. | |
unsigned long | getWidth () const |
get image width in pixels | |
unsigned long | getHeight () const |
get image height in pixels | |
int | getDepth () const |
get image depth | |
int | getMinMaxValues (double &min, double &max, const int mode=0) const |
get minimum and maximum pixel values. | |
double | getWidthHeightRatio () const |
get width height ratio (pixel aspect ratio: x/y) | |
double | getHeightWidthRatio () const |
get height width ratio (pixel aspect ratio: y/x) | |
int | setWidthHeightRatio (const double ratio) const |
set width height ratio (pixel aspect ratio: x/y) | |
int | setHeightWidthRatio (const double ratio) const |
set height width ratio (pixel aspect ratio: y/x) | |
int | isOutputValueUnused (const unsigned long value) |
check whether given output value is unused | |
unsigned long | getOutputDataSize (const int bits=0) const |
get number of bytes required for the rendered output of a single frame. | |
const void * | getOutputData (const int bits=0, const unsigned long frame=0, const int planar=0) |
render pixel data and return pointer to internal memory buffer. | |
int | getOutputData (void *buffer, const unsigned long size, const int bits=0, const unsigned long frame=0, const int planar=0) |
render pixel data and output to given memory buffer. | |
const void * | getOutputPlane (const int plane) const |
render pixel data and return pointer to given plane (internal memory buffer). | |
void | deleteOutputData () const |
delete internal memory buffer used for rendered images. | |
int | isMonochrome () const |
check whether image is monochrome or not. | |
EP_Interpretation | getPhotometricInterpretation () const |
get code for photometric interpretation (color model). | |
int | hasSOPclassUID (const char *uid) const |
check whether image has given SOP class UID. | |
const DiPixel * | getInterData () const |
get intermediate pixel data representation (read-only). | |
DiDisplayFunction * | getDisplayFunction () const |
get display function | |
int | setDisplayFunction (DiDisplayFunction *display) |
set display function | |
int | setNoDisplayFunction () |
set no display function. | |
int | deleteDisplayLUT (const int bits=0) |
delete specified display LUT(s) | |
int | convertPValueToDDL (const Uint16 pvalue, Uint16 &ddl, const int bits=8) |
convert P-value to DDL. | |
int | setNoVoiTransformation () |
unset all VOI transformations (windows and LUTs). | |
int | setMinMaxWindow (const int idx=0) |
set automatically calculated minimum/maximum window. | |
int | setHistogramWindow (const double thresh=0.05) |
set automatically calculated histogram 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=0) |
set automatically calculated VOI window for the specified Region of Interest (ROI). | |
int | setWindow (const unsigned long window) |
set specified window (given by index to window width/center sequence stored in image file). | |
int | setWindow (const double center, const double width) |
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=NULL, const OFBool ignoreDepth=OFFalse) |
set VOI LUT (given by dcmdata elements). | |
int | setVoiLut (const unsigned long table, 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 window, OFString &explanation) const |
get description of specified VOI window (stored in the image file) | |
const char * | getVoiLutExplanation (const unsigned long table, 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 | |
EP_Polarity | getPolarity () const |
get polarity. | |
int | setPolarity (const EP_Polarity polarity) |
set polarity. | |
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. | |
const char * | getPresentationLutExplanation () const |
get description of active presentation LUT | |
int | setInversePresentationLut (const DcmUnsignedShort &data, const DcmUnsignedShort &descriptor, const OFBool ignoreDepth=OFFalse) |
set inverse LUT for presentation transformation. | |
int | addOverlay (const unsigned int group, const signed int left_pos, const signed int top_pos, const unsigned int width, const unsigned int height, const DcmOverlayData &data, const DcmLongString &label, const DcmLongString &description, const EM_Overlay mode=EMO_Default) |
add specified plane to group of additional overlay planes. | |
int | removeOverlay (const unsigned int group) |
remove specified (additional) overlay plane | |
int | removeAllOverlays () |
remove all additional overlay planes | |
int | isOverlayVisible (const unsigned int plane, const unsigned int idx=0) |
check whether specified overlay plane is visible/activated. | |
int | showOverlay (const unsigned int plane, const unsigned int idx=0) |
activate specified overlay plane | |
int | showOverlay (const unsigned int plane, const EM_Overlay mode, const double fore=1.0, const double thresh=0.5, const unsigned int idx=0) |
activate specified overlay plane and change some parameters | |
int | showOverlay (const unsigned int plane, const Uint16 pvalue) |
activate specified overlay plane and change 'pvalue' (only for bitmap shutters) | |
int | showAllOverlays (const unsigned int idx=0) |
activate all overlay planes (make them visible) | |
int | showAllOverlays (const EM_Overlay mode, const double fore=1, const double thresh=0.5, const unsigned int idx=0) |
activate all overlay planes and set specified parameters | |
int | hideOverlay (const unsigned int plane, const unsigned int idx=0) |
deactivate specified overlay plane | |
int | hideAllOverlays (const unsigned int idx=0) |
deactivate all overlay planes (make them invisible) | |
int | placeOverlay (const unsigned int plane, const signed int left_pos, const signed int top_pos, const unsigned int idx=0) |
move origin of specified overlay plane to given position | |
unsigned int | getOverlayCount (const unsigned int idx=0) const |
get number of overlay planes | |
unsigned int | getOverlayGroupNumber (const unsigned int plane, const unsigned int idx=0) const |
get group number of specified overlay plane | |
const char * | getOverlayLabel (const unsigned int plane, const unsigned int idx=0) const |
get label of specified overlay plane | |
const char * | getOverlayDescription (const unsigned int plane, const unsigned int idx=0) const |
get description of specified overlay plane | |
EM_Overlay | getOverlayMode (const unsigned int plane, const unsigned int idx=0) const |
get mode of specified overlay plane | |
const void * | getOverlayData (const unsigned int plane, unsigned int &left_pos, unsigned int &top_pos, unsigned int &width, unsigned int &height, EM_Overlay &mode, const unsigned long frame=0, const int bits=8, const Uint16 fore=0xff, const Uint16 back=0x0, const unsigned int idx=2) const |
create bitmap for specified overlay plane. | |
const void * | getFullOverlayData (const unsigned int plane, unsigned int &width, unsigned int &height, const unsigned long frame=0, const int bits=8, const Uint16 fore=0xff, const Uint16 back=0x0, const unsigned int idx=0) const |
create bitmap for specified overlay plane. | |
void | deleteOverlayData () const |
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) const |
create bitmap for specified overlay plane and store it in (6xxx,3000) format. | |
DicomImage * | createDicomImage (unsigned long fstart=0, unsigned long fcount=0) const |
create copy of current image object. | |
DicomImage * | createScaledImage (const unsigned long width, const unsigned long height=0, const int interpolate=0, int aspect=0) const |
create scaled copy of current image object (given by exact size). | |
DicomImage * | createScaledImage (const double xfactor, const double yfactor=0, const int interpolate=0, const int aspect=0) const |
create scaled copy of current image object (given by scaling factors). | |
DicomImage * | createScaledImage (const signed long left_pos, const signed long top_pos, unsigned long clip_width, unsigned long clip_height, unsigned long scale_width=0, unsigned long scale_height=0, const int interpolate=0, int aspect=0, const Uint16 pvalue=0) const |
create scaled copy of specified (clipping) area of the current image object. | |
DicomImage * | createScaledImage (const signed long left_pos, const signed long top_pos, unsigned long width, unsigned long height, const double xfactor, const double yfactor=0, const int interpolate=0, const int aspect=0, const Uint16 pvalue=0) const |
create scaled copy of specified (clipping) area of the current image object. | |
DicomImage * | createClippedImage (const signed long left_pos, const signed long top_pos, unsigned long width=0, unsigned long height=0, const Uint16 pvalue=0) const |
create copy of specified area of the current image object (clipping). | |
int | flipImage (int horz=1, int vert=0) const |
flip current image (horizontally and/or vertically) | |
DicomImage * | createFlippedImage (int horz=1, int vert=0) const |
create a flipped copy of the current image. | |
int | rotateImage (signed int degree) const |
rotate current image (by steps of 90 degrees) | |
DicomImage * | createRotatedImage (signed int degree) const |
create a rotated copy of the current image. | |
DicomImage * | createMonochromeImage (const double red=0.299, const double green=0.587, const double blue=0.114) const |
create monochrome copy of the current image. | |
unsigned long | createWindowsDIB (void *&data, const unsigned long size, const unsigned long frame=0, const int bits=24, const int upsideDown=0, const int padding=1) |
create true color (24/32 bit) or palette (8 bit) bitmap for MS Windows. | |
unsigned long | createJavaAWTBitmap (void *&data, const unsigned long frame=0, const int bits=32) |
create true color (32 bit) or palette (8 bit) bitmap for Java (AWT default format). | |
DicomImage * | createMonoOutputImage (const unsigned long frame, const int bits) |
create new single frame DicomImage with applied grayscale transformations. | |
int | writeFrameToDataset (DcmItem &dataset, const int bits=0, const unsigned long frame=0, const int planar=0) |
render pixel data of the given frame and write image related attributes to DICOM dataset. | |
int | writeImageToDataset (DcmItem &dataset, const int mode=0) |
write current image and related attributes to DICOM dataset. | |
int | writePPM (const char *filename, const int bits=0, const unsigned long frame=0) |
write pixel data to PPM file (specified by filename). | |
int | writePPM (ostream &stream, const int bits=0, const unsigned long frame=0) |
write pixel data to PPM file (specified by open C++ stream). | |
int | writePPM (FILE *stream, const int bits=0, const unsigned long frame=0) |
write pixel data to PPM file (specified by open C stream). | |
int | writeRawPPM (const char *filename, const int bits=0, const unsigned long frame=0) |
write pixel data to raw PPM file (specified by filename). | |
int | writeRawPPM (FILE *stream, const int bits=0, const unsigned long frame=0) |
write pixel data to raw PPM file (specified by open C stream). | |
int | writeBMP (FILE *stream, const int bits=0, const unsigned long frame=0) |
write pixel data to BMP file (specified by open C stream). | |
int | writeBMP (const char *filename, const int bits=0, const unsigned long frame=0) |
write pixel data to BMP file (specified by filename). | |
int | writePluginFormat (const DiPluginFormat *plugin, FILE *stream, const unsigned long frame=0) |
write pixel data to plugable image format file (specified by open C stream). | |
int | writePluginFormat (const DiPluginFormat *plugin, const char *filename, const unsigned long frame=0) |
write pixel data to plugable image format file (specified by filename). | |
Static Public Member Functions | |
static const char * | getString (const EI_Status status) |
convert status code to status string | |
static const char * | getString (const EP_Interpretation interpret) |
convert photometric interpretation code to interpretation string | |
static void * | create12BitPackedBitmap (const void *buffer, const unsigned long size, const unsigned long count) |
create 12 bit packed (monochrome) bitmap for DICOM printers. | |
Protected Member Functions | |
DicomImage (const DicomImage *dicom, DiImage *image, const EP_Interpretation interpret=EPI_Unknown) | |
constructor, create copy of given image object with different image data and photometric interpretation | |
void | Init () |
initialize object. | |
int | checkDataDictionary () |
check whether data dictionary is present | |
const char * | getSOPclassUID () const |
get SOP class UID of current image object | |
int | normalizeDegreeValue (signed int °ree) const |
normalize given degree value (for internal use). | |
Private Member Functions | |
DicomImage (const DicomImage &) | |
DicomImage & | operator= (const DicomImage &) |
Private Attributes | |
EI_Status | ImageStatus |
current state of converting progress (error level) | |
EP_Interpretation | PhotometricInterpretation |
dicom color model (enumeration) | |
DiDocument * | Document |
points to document object | |
DiImage * | Image |
points to image object |
The main purpose of these modules is image display.
Definition at line 68 of file dcmimage.h.
|
constructor, open a DICOM file. opens specified file and reads image related data, creates internal representation of image data. use getStatus() to obtain detailed information about any errors.
|
|
constructor, use a given DcmObject
|
|
constructor, use a given DcmObject with specified rescale/slope. NB: This constructor ignores the Photometric Interpretation stored in the DICOM dataset and always creates a MONOCHROME2 image - useful in combination with Presentation States.
|
|
constructor, use a given DcmObject with specified modality LUT. NB: This constructor ignores the Photometric Interpretation stored in the DICOM dataset and always creates a MONOCHROME2 image - useful in combination with Presentation States.
|
|
constructor, create copy of given image object with different image data and photometric interpretation
|
|
add specified plane to group of additional overlay planes. replaces old overlay plane if group number already exists.
Definition at line 920 of file dcmimage.h. References DiMonoImage::addOverlay(), DiImage::getMonoImagePtr(), and Image. |
|
check whether data dictionary is present
|
|
convert P-value to DDL. conversion uses display LUT if present, linear scaling otherwise.
Definition at line 537 of file dcmimage.h. References DiMonoImage::convertPValueToDDL(), DiImage::getMonoImagePtr(), and Image. |
|
create 12 bit packed (monochrome) bitmap for DICOM printers. Memory is not handled internally - must be deleted from calling program.
Definition at line 1529 of file dcmimage.h. References DiMonoImage::createPackedBitmap(). |
|
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 allocated but not handled internally - must be deleted from calling program.
Definition at line 1269 of file dcmimage.h. References DiMonoImage::create6xxx3000OverlayData(), DiImage::getMonoImagePtr(), and Image. |
|
create copy of specified area of the current image object (clipping). memory is not handled internally - must be deleted from calling program.
|
|
create copy of current image object. memory is not handled internally - must be deleted from calling program.
|
|
create a flipped copy of the current image. memory is not handled internally - must be deleted from calling program.
|
|
create true color (32 bit) or palette (8 bit) bitmap for Java (AWT default format). 32 bit images allocate 32 bits per pixel (RGB), but only use the upper 24 bits. The sample order for color images is: Red, Green, Blue. Memory is not handled internally - must be deleted from calling program. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
Definition at line 1512 of file dcmimage.h. References DiImage::createAWTBitmap(), and Image. |
|
create monochrome copy of the current image. equal to createDicomImage() for monochrome images. memory is not handled internally - must be deleted from calling program. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
create new single frame DicomImage with applied grayscale transformations. The method getOutputData() is used internally for the new bitmap. Limited to monochrome images.
|
|
create a rotated copy of the current image. memory is not handled internally - must be deleted from calling program.
|
|
create scaled copy of specified (clipping) area of the current image object. memory is not handled internally - must be deleted from calling program. NB: clipping and interpolated scaling at the same moment is not yet fully implemented!
|
|
create scaled copy of specified (clipping) area of the current image object. memory is not handled internally - must be deleted from calling program. NB: clipping and interpolated scaling at the same moment is not yet fully implemented!
|
|
create scaled copy of current image object (given by scaling factors). memory is not handled internally - must be deleted from calling program.
|
|
create scaled copy of current image object (given by exact size). memory is not handled internally - must be deleted from calling program.
|
|
create true color (24/32 bit) or palette (8 bit) bitmap for MS Windows. 8 bit images require an appropriate color palette (256 entries, values: 0 to 255) and are only applicable to monochrome images, the beginning of a each line starts on a 32-bit address (if 'padding' is true); 24 bit images store 24 bits per pixel (RGB) and do align each line to a 32-bit address (if 'padding' is true); 32 bit images store 32 bits per pixel (RGB), but only use the upper 24 bits. The sample order for color images is (i.e. reverse): Blue, Green, Red. The memory buffer can be allocated both externally (from the calling program) and internally (inside this class/module). If the 'data' parameter is not NULL and the 'size' parameter, which describes the size (in bytes) of the allocated buffer, is suffiently large, the bitmap is stored in this buffer. Otherwise (i.e. 'data' is NULL) the memory is allocated internally. Please note that in both cases the memory is not handled internally after this method has finished and, therefore, must be deleted from the calling program. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
Definition at line 1489 of file dcmimage.h. References DiImage::createDIB(), and Image. |
|
delete specified display LUT(s)
Definition at line 520 of file dcmimage.h. References DiMonoImage::deleteDisplayLUT(), DiImage::getMonoImagePtr(), and Image. |
|
delete internal memory buffer used for rendered images. Save memory if data is no longer needed. Definition at line 429 of file dcmimage.h. References DiImage::deleteOutputData(), and Image. |
|
delete buffer for overlay plane data. Save memory if data is no longer needed. Definition at line 1247 of file dcmimage.h. References DiMonoImage::deleteOverlayData(), DiImage::getMonoImagePtr(), and Image. |
|
flip current image (horizontally and/or vertically)
|
|
get image depth
Definition at line 253 of file dcmimage.h. References DiImage::getBits(), and Image. |
|
get display function
Definition at line 483 of file dcmimage.h. References DiMonoImage::getDisplayFunction(), DiImage::getMonoImagePtr(), and Image. |
|
get index of first frame. This functions returns the index of the first frame processed by this class (see constructors for details).
Definition at line 212 of file dcmimage.h. References DiImage::getFirstFrame(), and Image. |
|
get number of frames. Please note that this function does not return the number of frames stored in the DICOM file/dataset. It rather refers to the number of frames processed by this class (see constructors for details).
Definition at line 200 of file dcmimage.h. References DiImage::getNumberOfFrames(), and Image. |
|
create bitmap for specified overlay plane. (up to 16 bits per pixel with two values: 'fore' and 'back') In contrast to the previous method the full bitmap data is always returned.
Definition at line 1231 of file dcmimage.h. References DiMonoImage::getFullOverlayData(), DiImage::getMonoImagePtr(), and Image. |
|
get image height in pixels
Definition at line 243 of file dcmimage.h. References DiImage::getRows(), and Image. Referenced by DcmQuantColorMapping< T1, T2 >::create(). |
|
get height width ratio (pixel aspect ratio: y/x)
Definition at line 294 of file dcmimage.h. References DiImage::getRowColumnRatio(), and Image. |
|
get intermediate pixel data representation (read-only). This function allows to access the pixel data after they have been extracted from the DICOM data element and the modality transformation has been applied (if present and not disabled). Please note that for monochrome images the internal representation might be signed whereas color images are automatically converted to unsigned RGB format. Pixels are aligned to 8, 16 or 32 bits.
Definition at line 470 of file dcmimage.h. References DiImage::getInterData(), and Image. |
|
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. Please note that the min/max values refer to the full pixel data (i.e. including all possible present frames as specified in the constructor of this class).
Definition at line 272 of file dcmimage.h. References DiMonoImage::getMinMaxValues(), DiImage::getMonoImagePtr(), and Image. |
|
get description of performed modality LUT transformation
Definition at line 765 of file dcmimage.h. References DiMonoImage::getModalityLutExplanation(), DiImage::getMonoImagePtr(), and Image. |
|
render pixel data and output to given memory buffer. apply VOI/PLUT transformation and (visible) overlay planes. output data is always padded to 8, 16, 32, ... bits (bits allocated). Supported output color models: Monochrome 2, RGB (and YCbCr_Full if flag CIF_KeepYCbCrColorModel set). The rendered pixel data is alway unsigned.
Definition at line 399 of file dcmimage.h. References DiImage::getBits(), DiImage::getOutputData(), and Image. |
|
render pixel data and return pointer to internal memory buffer. apply VOI/PLUT transformation and (visible) overlay planes. internal memory buffer will be delete for the next getBitmap/Output operation. output data is always padded to 8, 16, 32, ... bits (bits allocated). Supported output color models: Monochrome 2, RGB (and YCbCr_Full if flag CIF_KeepYCbCrColorModel set). The rendered pixel data is alway unsigned.
Definition at line 373 of file dcmimage.h. References DiImage::getBits(), DiImage::getOutputData(), and Image. Referenced by DcmQuantColorMapping< T1, T2 >::create(). |
|
get number of bytes required for the rendered output of a single frame. This function determines the size of a rendered frame as created by getOutputData(). Therefore, it can be used to allocate a sufficiently large memory buffer and pass its size to the second variant of getOutputData().
Definition at line 349 of file dcmimage.h. References DiImage::getBits(), DiImage::getOutputDataSize(), and Image. |
|
render pixel data and return pointer to given plane (internal memory buffer). apply VOI/PLUT transformation and (visible) overlay planes internal memory buffer will be delete for the next getBitmap/Output operation. Supported output color models: Monochrome 2, RGB (and YCbCr_Full if flag CIF_KeepYCbCrColorModel set). The rendered pixel data is alway unsigned.
Definition at line 420 of file dcmimage.h. References DiImage::getOutputPlane(), and Image. |
|
get number of overlay planes
Definition at line 1106 of file dcmimage.h. References DiOverlay::getCount(), DiImage::getOverlayPtr(), and Image. |
|
create bitmap for specified overlay plane. (up to 16 bits per pixel with two values: 'fore' and 'back') Please note that the current origin of the overlay plane is used. Furthermore, the size of the overlay plane is restricted to the size of the surrounding image. Use the method getFullOverlayData() if the complete bitmap data is required regardless of its position.
Definition at line 1195 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getOverlayData(), and Image. |
|
get description of specified overlay plane
Definition at line 1147 of file dcmimage.h. References DiImage::getOverlayPtr(), DiOverlay::getPlaneDescription(), and Image. |
|
get group number of specified overlay plane
Definition at line 1119 of file dcmimage.h. References DiImage::getOverlayPtr(), DiOverlay::getPlaneGroupNumber(), and Image. |
|
get label of specified overlay plane
Definition at line 1133 of file dcmimage.h. References DiImage::getOverlayPtr(), DiOverlay::getPlaneLabel(), and Image. |
|
get mode of specified overlay plane
Definition at line 1161 of file dcmimage.h. References DiImage::getOverlayPtr(), DiOverlay::getPlaneMode(), and Image. |
|
get code for photometric interpretation (color model).
Definition at line 450 of file dcmimage.h. References PhotometricInterpretation. |
|
get polarity. applicable to monochrome and color images. possible values are EPP_Normal and EPP_Reverse
Definition at line 778 of file dcmimage.h. References DiImage::getPolarity(), and Image. |
|
get description of active presentation LUT
Definition at line 876 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getPresentationLutExplanation(), and Image. |
|
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.
Definition at line 827 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getPresentationLutShape(), and Image. |
|
get index of representative frame. This attribute is optionally stored in the DICOM dataset (type 3).
Definition at line 223 of file dcmimage.h. References DiImage::getRepresentativeFrame(), and Image. |
|
get SOP class UID of current image object
|
|
get current status information
Definition at line 187 of file dcmimage.h. References DiImage::getStatus(), Image, and ImageStatus. |
|
convert photometric interpretation code to interpretation string
|
|
convert status code to status string
|
|
get number of VOI LUTs (stored in image file)
Definition at line 717 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getVoiLutCount(), and Image. |
|
get description of specified VOI LUT (stored in the image file)
Definition at line 754 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getVoiLutExplanation(), and Image. |
|
get description of active VOI transformation
Definition at line 727 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getVoiTransformationExplanation(), and Image. |
|
get description of specified VOI window (stored in the image file)
Definition at line 740 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getVoiWindowExplanation(), and Image. |
|
get image width in pixels
Definition at line 233 of file dcmimage.h. References DiImage::getColumns(), and Image. Referenced by DcmQuantColorMapping< T1, T2 >::create(). |
|
get width height ratio (pixel aspect ratio: x/y)
Definition at line 284 of file dcmimage.h. References DiImage::getColumnRowRatio(), and Image. |
|
get current window center and width values
Definition at line 656 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getWindow(), and Image. |
|
get number of VOI windows (stored in image file). NB: This function does nothing if the flag CIF_UsePresentationState is set.
Definition at line 668 of file dcmimage.h. References DiImage::getMonoImagePtr(), DiMonoImage::getWindowCount(), and Image. |
|
check whether image has given SOP class UID.
|
|
deactivate all overlay planes (make them invisible)
Definition at line 1075 of file dcmimage.h. References DiImage::getOverlayPtr(), DiOverlay::hideAllPlanes(), and Image. |
|
deactivate specified overlay plane
Definition at line 1061 of file dcmimage.h. References DiImage::getOverlayPtr(), DiOverlay::hidePlane(), and Image. |
|
initialize object. create internal image object depending on color model. is used for all 'real' constructors. |
|
check whether image is monochrome or not.
Definition at line 441 of file dcmimage.h. References PhotometricInterpretation. |
|
check whether given output value is unused
Definition at line 330 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::isValueUnused(). |
|
check whether specified overlay plane is visible/activated. see show/hideOverlay() to modifiy the visibility status.
Definition at line 965 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::isPlaneVisible(). |
|
normalize given degree value (for internal use). negative value are mapped to positive range (-360 -> 0, -270 -> 90, -180 -> 180, -90 -> 270), 360 is set to 0, all other value are rejected
|
|
move origin of specified overlay plane to given position
Definition at line 1091 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::placePlane(). |
|
remove all additional overlay planes
Definition at line 951 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::removeAllOverlays(). |
|
remove specified (additional) overlay plane
Definition at line 940 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::removePlane(). |
|
rotate current image (by steps of 90 degrees)
|
|
set display function
Definition at line 495 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setDisplayFunction(). |
|
set hardcopy parameters. only applicable to monochrome images. used to display LinOD images
Definition at line 810 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setHardcopyParameters(). |
|
set height width ratio (pixel aspect ratio: y/x)
Definition at line 318 of file dcmimage.h. References Image, and DiImage::setRowColumnRatio(). |
|
set automatically calculated histogram window. possibly active VOI LUT is implicitly disabled.
Definition at line 586 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::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 !
Definition at line 893 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setInversePresentationLut(). |
|
set automatically calculated minimum/maximum window. possibly active VOI LUT is implicitly disabled. Please note that the min/max values refer to the full pixel data (i.e. including all possible present frames as specified in the constructor of this class).
Definition at line 572 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setMinMaxWindow(). |
|
set no display function. disables display function transformation, object is not deleted!
Definition at line 508 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setNoDisplayFunction(). |
|
unset all VOI transformations (windows and LUTs). only applicable to monochrome images
Definition at line 555 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setNoVoiTransformation(). |
|
set polarity. applicable to monochrome and color images.
Definition at line 792 of file dcmimage.h. References Image, and DiImage::setPolarity(). |
|
set LUT for presentation transformation. possibly active presentation LUT is implicitly disabled. Given data is only referenced and not copied! Make sure that the corresponding DcmXXX objects exist as long as the presentation LUT is set.
Definition at line 863 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setPresentationLut(). |
|
set shape for presentation transformation. possibly active presentation LUT is implicitly disabled.
Definition at line 844 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setPresentationLutShape(). |
|
set automatically calculated VOI window for the specified Region of Interest (ROI). The ROI is specified by means of a rectangle (left, top, width, height). Only the part of the ROI that overlaps with the image is regarded - if the overlapping area is empty this method returns false (0). Possibly active VOI LUT is implicitly disabled.
Definition at line 608 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setRoiWindow(). |
|
set VOI LUT (given by index to VOI LUT sequence stored in image file). possibly active window/center is implicitly disabled. NB: This function does nothing if the flag CIF_UsePresentationState is set.
Definition at line 706 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setVoiLut(). |
|
set VOI LUT (given by dcmdata elements). possibly active window/center is implicitly disabled. Given data is only referenced and not copied! Make sure that the corresponding DcmXXX objects exist as long as the VOI LUT is set.
Definition at line 687 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setVoiLut(). |
|
set width height ratio (pixel aspect ratio: x/y)
Definition at line 306 of file dcmimage.h. References Image, and DiImage::setColumnRowRatio(). |
|
set specified window (given by window width and center). possibly active VOI LUT is implicitly disabled.
Definition at line 642 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setWindow(). |
|
set specified window (given by index to window width/center sequence stored in image file). possibly active VOI LUT is implicitly disabled. NB: This function does nothing if the flag CIF_UsePresentationState is set.
Definition at line 626 of file dcmimage.h. References DiImage::getMonoImagePtr(), Image, and DiMonoImage::setWindow(). |
|
activate all overlay planes and set specified parameters
Definition at line 1044 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::showAllPlanes(). |
|
activate all overlay planes (make them visible)
Definition at line 1028 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::showAllPlanes(). |
|
activate specified overlay plane and change 'pvalue' (only for bitmap shutters)
Definition at line 1014 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::showPlane(). |
|
activate specified overlay plane and change some parameters
Definition at line 997 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::showPlane(). |
|
activate specified overlay plane
Definition at line 980 of file dcmimage.h. References DiImage::getOverlayPtr(), Image, and DiOverlay::showPlane(). |
|
write pixel data to BMP file (specified by filename). pixel data is written in palette or truecolor mode. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
write pixel data to BMP file (specified by open C stream). pixel data is written in palette or truecolor mode. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
render pixel data of the given frame and write image related attributes to DICOM dataset. Applies VOI/PLUT transformation and (visible) overlay planes, output data is always padded to 8, 16, 32, ... bits (bits allocated). Replaces any modality transformation in the dataset by a linear rescale/slope since the modality transformation is rendered into the pixel data. Replaces the VOI transformations in the dataset by a "max range" VOI window. Removes all Overlay Plane Module attributes for embedded overlay planes from the dataset. Writes the following DICOM attributes (from Image Pixel Module):
Definition at line 1577 of file dcmimage.h. References Image, and DiImage::writeFrameToDataset(). |
|
write current image and related attributes to DICOM dataset. Uses the internal representation of the pixel data, therefore the output data is always padded to 8, 16, 32, ... bits (bits allocated). Replaces any modality transformation in the dataset by a linear rescale/slope since the modality transformation is rendered into the pixel data. Removes all Overlay Plane Module attributes for embedded overlay planes from the dataset. Writes the following DICOM attributes (from Image Pixel Module):
Definition at line 1610 of file dcmimage.h. References Image, and DiImage::writeImageToDataset(). |
|
write pixel data to plugable image format file (specified by filename). Format specific parameters may be set directly in the instantiated 'plugin' class.
|
|
write pixel data to plugable image format file (specified by open C stream). Format specific parameters may be set directly in the instantiated 'plugin' class.
|
|
write pixel data to PPM file (specified by open C stream). pixel data is written in ASCII format. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
write pixel data to PPM file (specified by open C++ stream). pixel data is written in ASCII format. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
write pixel data to PPM file (specified by filename). pixel data is written in ASCII format. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
write pixel data to raw PPM file (specified by open C stream). pixel data is written in binary format. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|
|
write pixel data to raw PPM file (specified by filename). pixel data is written in binary format. This method does not work if original YCbCr color model is retained (see CIF_KeepYCbCrColorModel).
|