Inheritance diagram for DcmQuantHistogramItem:
Public Member Functions | |
DcmQuantHistogramItem (const DcmQuantPixel &colorP, int val) | |
constructor | |
DcmQuantHistogramItem () | |
default constructor | |
OFBool | equals (const DcmQuantPixel &colorP) const |
compares the stored pixel value with the given pixel. | |
int | getValue () const |
returns the integer value maintained by this object | |
void | setValue (int v) |
assigns a new integer value to this object | |
void | incValue () |
increases the integer value maintained by this object by one | |
Private Attributes | |
int | value |
integer value assigned to this pixel. |
The class is used as a helper class during computation of an image histogram, as a member of a color LUT and as a member of a color hash table.
Definition at line 49 of file diqthitm.h.
|
constructor
Definition at line 56 of file diqthitm.h. |
|
compares the stored pixel value with the given pixel.
Definition at line 75 of file diqthitm.h. |
|
assigns a new integer value to this object
Definition at line 89 of file diqthitm.h. References value. |
|
integer value assigned to this pixel. This value is used for different purposes. During computation of a histogram it is used as a counter that counts the instances of the current color. In a color hash table, it contains the index value from the color LUT assigned to this color. In a color LUT, it is the cluster value, i.e. the radius in which all color are guaranteed to be mapped to this palette color. Definition at line 111 of file diqthitm.h. Referenced by getValue(), incValue(), and setValue(). |