DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions
DicomDirImageImplementation Class Reference

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

+ Inheritance diagram for DicomDirImageImplementation:

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 OFBool decompressAll=OFFalse) const
 get scaled pixel data from DICOM image.

Detailed Description

Implementation of the plugable image support for the DICOMDIR class.


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:
srcDatasource pixel data (byte array)
srcWidthwidth of the source pixel data (in pixels)
srcHeightheight of the source pixel data (in pixels)
dstDatadestination pixel data (resulting byte array, not NULL)
dstWidthwidth of the scaled pixel data (in pixels)
dstHeightheight 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 OFBool  decompressAll = OFFalse 
) 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:
datasetDICOM dataset in which the DICOM image is stored
pixelresulting pixel data array (not NULL)
countnumber of pixels allocated for the resulting array
frameindex of the frame to be scaled (1..n)
widthwidth of the scaled image (in pixels)
heightheight of the scaled image (in pixels)
decompressAllalways decompress complete pixel data if true
Returns:
OFTrue if successful, OFFalse otherwise

Implements DicomDirImagePlugin.


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


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027