VideoTools
|
A class that does histogram equalisation for eight-bit samples. More...
#include <grhistogram.h>
Public Types | |
enum | { N = 256 } |
typedef unsigned long | sum_type |
typedef unsigned char | value_type |
Public Member Functions | |
G_STATIC_ASSERT (sizeof(value_type)==1) | |
Histogram () | |
Constructor. More... | |
Histogram (bool active) | |
Constructor, optionally for an unusable, zero-cost object. | |
void | clear () |
Clears the map. | |
void | add (value_type) |
Adds a pixel to the histogram. More... | |
void | compute () |
Computes the equalisation map once all the pixels have been add()ed. More... | |
value_type | map (value_type) const |
Does the equalisation mapping. | |
bool | active () const |
Returns true if constructed as active. | |
A class that does histogram equalisation for eight-bit samples.
The implementation goes for speed over space by holding a complete map of pixel values rather than just the pixel values that appear in the image.
Definition at line 41 of file grhistogram.h.
|
inline |
|
inline |
|
inline |
Computes the equalisation map once all the pixels have been add()ed.
Definition at line 129 of file grhistogram.h.