34 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/dcmimage/diqtpix.h" 36 #include "dcmtk/dcmimage/diqthitl.h" 91 unsigned long newmaxval,
92 unsigned long maxcolors);
objects of this class represent individual RGB pixels.
this class extends DcmQuantPixel by an integer value which is used for various purposes.
DcmQuantColorHashTable & operator=(const DcmQuantColorHashTable &src)
private undefined copy assignment operator
void push_front(const DcmQuantPixel &colorP, int value)
inserts a new DcmQuantHistogramItem at the beginning of the list.
this class implements a hash table for colors.
~DcmQuantColorHashTable()
destructor
DcmQuantHistogramItemListPointer * table
hash array of lists for color/value pairs
this is a helper class used by class DcmQuantColorHashTable.
void add(const DcmQuantPixel &colorP, int value)
adds a new color to the hash table.
int lookup(const DcmQuantPixel &colorP)
searches the list for an entry that equals the given pixel value.
DcmQuantColorHashTable()
constructor
int lookup(const DcmQuantPixel &colorP) const
looks up the given color in the hash table.
unsigned long hash() const
this method computes an unsigned long hash value for the current pixel.
Interface class for dcmimgle/dcmimage module.
unsigned long addToHashTable(DicomImage &image, unsigned long newmaxval, unsigned long maxcolors)
adds all pixels of all frames of the given image (which must be a color image) to the hash table...
unsigned long createHistogram(DcmQuantHistogramItemPointer *&array)
converts the contents of this hash table into a histogram array.
unsigned long countEntries() const
counts the number of entries in the hash table