34 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/ofstd/oflist.h"
36 #include "dcmtk/dcmimage/diqthitm.h"
72 if ((*first)->equals(colorP))
return (*first)->getValue();
90 if ((*first)->equals(colorP))
objects of this class represent individual RGB pixels.
size_t size() const
returns current number of objects in the list
this class extends DcmQuantPixel by an integer value which is used for various purposes.
void push_front(const DcmQuantPixel &colorP, int value)
inserts a new DcmQuantHistogramItem at the beginning of the list.
OFList< DcmQuantHistogramItem * > list_
list of (pointers to) DcmQuantHistogramItem objects
DcmQuantHistogramItemList()
constructor
size_t size() const
returns number of elements in the list.
this is a helper class used by class DcmQuantColorHashTable.
void moveto(DcmQuantHistogramItemPointer *array, unsigned long &counter, unsigned long numcolors)
this method moves the contents of this list into the given array.
int lookup(const DcmQuantPixel &colorP)
searches the list for an entry that equals the given pixel value.
OFIterator< T > begin() const
returns an iterator referencing the first element in the list.
unsigned long add(const DcmQuantPixel &colorP)
adds the given pixel to the list.
~DcmQuantHistogramItemList()
destructor. Destroys all objects pointed to by list.
OFListIterator(DcmQuantHistogramItem *) first
temporary iterator used in various methods; declared here for efficiency reasons only.
void push_front(const T &x)
inserts before the first element of the list.