| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/imagehistogram.h>

Public Member Functions | |
| ImageHistogram (Image *analyzedImage, int imageLayer) | |
| virtual | ~ImageHistogram () |
| void | clear () |
| void | accumulate (Image *image, int imageLayer=-1) |
| int | tableSize () const |
| unsigned long | table (int i) const |
| int | minValue () const |
| int | maxValue () const |
| unsigned long | samples () const |
| double | meanValue () const |
| VRS_TYPEINFO (ImageHistogram, SharedObj) | |
Static Public Member Functions | |
| static void | autoContrast (Image *image, int imageLayer) |
| VRS::ImageHistogram::ImageHistogram | ( | Image * | analyzedImage, | |
| int | imageLayer | |||
| ) |
| virtual VRS::ImageHistogram::~ImageHistogram | ( | ) | [virtual] |
Computes the histogram for a given image, i.e., statistical information about the pixel values, their numbers and distribution. The histogram can analyze unsigned-char images only!
| void VRS::ImageHistogram::clear | ( | ) |
| void VRS::ImageHistogram::accumulate | ( | Image * | image, | |
| int | imageLayer = -1 | |||
| ) |
The clear method resets all statistical information. The accumulation method reads the specified image layer of the specified image.
| int VRS::ImageHistogram::tableSize | ( | ) | const |
| unsigned long VRS::ImageHistogram::table | ( | int | i | ) | const |
The histogram consists of a table whose entries record how many times pixel values are contained in the analyzed image(s). The table has 256 entries (table size = 256).
| int VRS::ImageHistogram::minValue | ( | ) | const |
| int VRS::ImageHistogram::maxValue | ( | ) | const |
| unsigned long VRS::ImageHistogram::samples | ( | ) | const |
| double VRS::ImageHistogram::meanValue | ( | ) | const |
| static void VRS::ImageHistogram::autoContrast | ( | Image * | image, | |
| int | imageLayer | |||
| ) | [static] |
Autocontrast scale the pixel values of the specified image in the specified image layer such that the current miminum value maps to 0 and the current maximum value maps to 255. The method constructs internally a histogram for the given image.
| VRS::ImageHistogram::VRS_TYPEINFO | ( | ImageHistogram | , | |
| SharedObj | ||||
| ) |