DCMTK  Version 3.6.7
OFFIS DICOM Toolkit
Public Member Functions | List of all members
DicomDirImageImplementation Class Reference

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

+ Inheritance diagram for DicomDirImageImplementation:

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). 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
 get scaled pixel data from DICOM image. More...
 
- Public Member Functions inherited from DicomDirImagePlugin
virtual ~DicomDirImagePlugin ()
 destructor (virtual)
 

Additional Inherited Members

- Protected Member Functions inherited from DicomDirImagePlugin
 DicomDirImagePlugin ()
 constructor (protected)
 

Detailed Description

Implementation of the plugable image support for the DICOMDIR class.

Member Function Documentation

◆ scaleData()

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.

◆ scaleImage()

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 Thu Apr 28 2022 for DCMTK Version 3.6.7 by Doxygen 1.9.1