DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Protected Member Functions
DicomDirImagePlugin Class Reference

Abstract interface to plugable image support for the DICOMDIR class. More...

+ Inheritance diagram for DicomDirImagePlugin:

List of all members.

Public Member Functions

virtual ~DicomDirImagePlugin ()
 destructor (virtual)
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 =0
 scale image (pixel data) to specified size
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 =0
 scale image (from DICOM dataset) to specified size

Protected Member Functions

 DicomDirImagePlugin ()
 constructor (protected)

Detailed Description

Abstract interface to plugable image support for the DICOMDIR class.

This is an abstract base class used as an interface to access DICOM images from the DicomDirInterface. The implementation can be found in dcmjpeg/libsrc/ddpiimpl.cc (incl. JPEG support).


Member Function Documentation

virtual OFBool DicomDirImagePlugin::scaleData ( const Uint8 *  srcData,
const unsigned int  srcWidth,
const unsigned int  srcHeight,
Uint8 *  dstData,
const unsigned int  dstWidth,
const unsigned int  dstHeight 
) const [pure virtual]

scale image (pixel data) to specified size

Parameters:
srcDatapointer to 8 bit source pixel data (original image)
srcWidthwidth of the source image
srcHeightheight of the source image
dstDatapointer to 8 bit destination pixel data (scaled image). This array needs to be allocated prior to calling this function.
dstWidthwidth of the destination image
dstHeightheight of the destination image
Returns:
OFTrue if successful, OFFalse otherwise

Implemented in DicomDirImageImplementation.

virtual OFBool DicomDirImagePlugin::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 [pure virtual]

scale image (from DICOM dataset) to specified size

Parameters:
datasetDICOM dataset where the pixel data is stored (original image)
pixelpointer to 8 bit destination pixel data (scaled image). This array needs to be allocated prior to calling this function.
countnumber of bytes allocated for the 'pixel' array
frameindex of the frame to be scaled (0..n-1)
widthwidth of the destination image
heightheight of the destination image
decompressAllalways decompress complete pixel data if true
Returns:
OFTrue if successful, OFFalse otherwise

Implemented in DicomDirImageImplementation.


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