DicomDirImageImplementation Class Reference

Implementation of the plugable image support for the DICOMDIR class. More...

Inheritance diagram for DicomDirImageImplementation:

DicomDirImagePlugin List of all members.

Public Member Functions

 DicomDirImageImplementation ()
 constructor
virtual ~DicomDirImageImplementation ()
 destructor
virtual OFBool scaleData (const Uint8 *srcData, const unsigned int srcWidth, const unsigned int srcHeight, Uint8 *dstData, const unsigned int dstWidth, const unsigned int dstHeight) const
 scale given pixel data (monochrome only).
virtual OFBool scaleImage (DcmItem *dataset, Uint8 *pixel, const unsigned long count, const unsigned long frame, const unsigned int width, const unsigned int height) const
 get scaled pixel data from DICOM image.

Detailed Description

Implementation of the plugable image support for the DICOMDIR class.

Definition at line 49 of file ddpiimpl.h.


Member Function Documentation

virtual OFBool DicomDirImageImplementation::scaleData const Uint8 *  srcData,
const unsigned int  srcWidth,
const unsigned int  srcHeight,
Uint8 *  dstData,
const unsigned int  dstWidth,
const unsigned int  dstHeight
const [virtual]
 

scale given pixel data (monochrome only).

The destination pixel data array needs to be allocated by the caller.

Parameters:
srcData source pixel data (byte array)
srcWidth width of the source pixel data (in pixels)
srcHeight height of the source pixel data (in pixels)
dstData destination pixel data (resulting byte array, not NULL)
dstWidth width of the scaled pixel data (in pixels)
dstHeight height of the scaled pixel data (in pixels)
Returns:
OFTrue if successful, OFFalse otherwise

Implements DicomDirImagePlugin.

virtual OFBool DicomDirImageImplementation::scaleImage DcmItem dataset,
Uint8 *  pixel,
const unsigned long  count,
const unsigned long  frame,
const unsigned int  width,
const unsigned int  height
const [virtual]
 

get scaled pixel data from DICOM image.

The resulting scaled image (pixel array) is always monochrome. The resulting pixel data array needs to be allocated by the caller.

Parameters:
dataset DICOM dataset in which the DICOM image is stored
pixel resulting pixel data array (not NULL)
count number of pixels allocated for the resulting array
frame index of the frame to be scaled (1..n)
width width of the scaled image (in pixels)
height height of the scaled image (in pixels)
Returns:
OFTrue if successful, OFFalse otherwise

Implements DicomDirImagePlugin.


The documentation for this class was generated from the following file:


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5