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

List of all members.

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.
static OFCondition updateDerivationDescription (DcmItem *dataset, const char *description)
 create Derivation Description.

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 May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027