/usr/include/dcmtk/dcmimage/diquant.h is in libdcmtk-dev 3.6.2-3build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | /*
*
* Copyright (C) 2002-2011, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmimage
*
* Author: Marco Eichelberg
*
* Purpose: class DcmQuantFloydSteinberg
*
*/
#ifndef DIQUANT_H
#define DIQUANT_H
#include "dcmtk/config/osconfig.h"
#include "dcmtk/ofstd/ofcond.h" /* for OFCondition */
#include "dcmtk/dcmdata/dctypes.h" /* for Uint32 etc. */
#include "dcmtk/dcmimage/diqttype.h" /* for enums */
#include "dcmtk/ofstd/ofstring.h" /* for class OFString */
class DicomImage;
class DcmItem;
class DcmTagKey;
class DCMTK_DCMIMAGE_EXPORT DcmQuant
{
public:
/** 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.
* @param sourceImage DICOM color image
* @param target target item to which the palette color image is written
* @param writeAsOW if true, the LUT Data attributes are encoded as OW instead
* US. LUT Data is always written as OW if numberOfColors is 65536.
* @param write16BitEntries if true, LUT data is encoded with 16 bits per entry
* @param floydSteinberg determines whether or not to use Floyd-Steinberg
* error diffusion during creation of the palette color image
* @param numberOfColors desired number of colors in the color palette.
* Valid range is [2..65536].
* @param description description string suitable for use as
* Derivation Description returned in this parameter
* @param largeType algorithm used for determining the largest dimension
* in the Median Cut algorithm
* @param repType algorithm for choosing a representative color for each
* box in the Median Cut algorithm
* @return EC_Normal if successful, an error code otherwise.
*/
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);
/** create Derivation Description. If a derivation description
* already exists, the old text is appended to the new text.
* @param dataset dataset to be modified
* @param description description string.
* @return EC_Normal if successful, an error code otherwise
*/
static OFCondition updateDerivationDescription(DcmItem *dataset, const char *description);
};
#endif
|