DCMTK  Version 3.6.1 20170228
OFFIS DICOM Toolkit
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
DcmQuant Class Reference

Static Public Member Functions

static OFCondition createPaletteColorImage (DicomImage &sourceImage, DcmItem &target, OFBool writeAsOW, OFBool write16BitEntries, OFBool floydSteinberg, Uint32 numberOfColors, OFString &description, DcmLargestDimensionType largeType=DcmLargestDimensionType_default, DcmRepresentativeColorType repType=DcmRepresentativeColorType_default)
 converts the given color image into a palette color image. More...
 
static OFCondition updateDerivationDescription (DcmItem *dataset, const char *description)
 create Derivation Description. More...
 

Member Function Documentation

static OFCondition DcmQuant::createPaletteColorImage ( DicomImage sourceImage,
DcmItem target,
OFBool  writeAsOW,
OFBool  write16BitEntries,
OFBool  floydSteinberg,
Uint32  numberOfColors,
OFString description,
DcmLargestDimensionType  largeType = DcmLargestDimensionType_default,
DcmRepresentativeColorType  repType = DcmRepresentativeColorType_default 
)
static

converts the given color image into a palette color image.

All frames of the image are converted. The converted result is written as a complete Image Pixel module to the given target item.

Parameters
sourceImageDICOM color image
targettarget item to which the palette color image is written
writeAsOWif true, the LUT Data attributes are encoded as OW instead US. LUT Data is always written as OW if numberOfColors is 65536.
write16BitEntriesif true, LUT data is encoded with 16 bits per entry
floydSteinbergdetermines whether or not to use Floyd-Steinberg error diffusion during creation of the palette color image
numberOfColorsdesired number of colors in the color palette. Valid range is [2..65536].
descriptiondescription string suitable for use as Derivation Description returned in this parameter
largeTypealgorithm used for determining the largest dimension in the Median Cut algorithm
repTypealgorithm for choosing a representative color for each box in the Median Cut algorithm
Returns
EC_Normal if successful, an error code otherwise.
static OFCondition DcmQuant::updateDerivationDescription ( DcmItem dataset,
const char *  description 
)
static

create Derivation Description.

If a derivation description already exists, the old text is appended to the new text.

Parameters
datasetdataset to be modified
descriptiondescription string.
Returns
EC_Normal if successful, an error code otherwise

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


Generated on Tue Feb 28 2017 for DCMTK Version 3.6.1 20170228 by Doxygen 1.8.8