#include <Base.h>


Public Member Functions | |
| Histogram () | |
| The default constructor is an invalid histogram storing no data. | |
| unsigned | operator() (int x, int c) |
| Sample the histogram at a particular bucket in a particular image channel. | |
| unsigned | operator() (int x) |
| Sample the histogram at a particular bucket, summed over all channels. | |
Public Attributes | |
| bool | valid |
| Is it safe to dereference data and/or call operator(). | |
| unsigned | channels |
| How many channels are there in this histogram? | |
| unsigned * | data |
| Access to the raw histogram data. | |
Has all the properties of a HistogramConfig and also some actual histograms. Before you dereference the data, check if valid is true. Even if you requested a histogram, you're not guaranteed to get one back in all cases.
Definition at line 181 of file Base.h.
| FCam::Histogram::Histogram | ( | ) | [inline] |
| unsigned FCam::Histogram::operator() | ( | int | x, | |
| int | c | |||
| ) | [inline] |
Sample the histogram at a particular bucket in a particular image channel.
The absolute number should not be relied on, because the histogram is computed over the bayer-mosaiced raw sensor data, which may be a different resolution to the actual output image if the imaging pipe is doing some resizing. The channels are in the same order as returned by Sensor::getBayerPattern - typically GRBG.
| unsigned FCam::Histogram::operator() | ( | int | x | ) | [inline] |
| unsigned* FCam::Histogram::data |
1.5.6