DCMTK Version 3.6.8
OFFIS DICOM Toolkit
Public Member Functions | Protected Member Functions | List of all members
DicomDirImagePlugin Class Referenceabstract

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

+ Inheritance diagram for DicomDirImagePlugin:

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 More...
 
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 More...
 

Protected Member Functions

 DicomDirImagePlugin ()
 constructor (protected)
 

Detailed Description

Abstract interface to pluggable 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

◆ scaleData()

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.

◆ scaleImage()

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 Dec 19 2023 for DCMTK Version 3.6.8 by Doxygen 1.9.4