VizKit
3.3.7
|
Creates histogram data. More...
#include <VisualHistogram.h>
Classes | |
struct | PixelColorHistogramValue |
Data value of a histogram of PixelColor values. More... | |
Public Types | |
typedef std::vector < PixelColorHistogramValue > | PixelColorHistogram |
Vector of histogram values. | |
typedef PixelColorHistogram::iterator | PixelColorHistogramIterator |
The PixelColorHistogramIterator is an iterator of the PixelColorHistogram. | |
Static Public Member Functions | |
static PixelColorHistogram | createHistogramOfRGBPixels (std::vector< PixelColor > &inputValues) |
Creates a histogram of ARGB PixelColor values. | |
Private Member Functions | |
VisualHistogram () | |
The constructor. | |
~VisualHistogram () | |
The destructor. | |
Static Private Member Functions | |
static void | initCentroids (const std::vector< PixelColor > &inputValues, const uint32 requestedNumberOfCentroids, std::vector< PixelColor > ¢roids) |
Initializes the centroids of the histogram. | |
static VisualHistogram::PixelColorHistogram | thresholdPass (PixelColorHistogram &inputValues) |
Normalizes PixelColor values by merging similar ones. |
Creates histogram data.
typedef std::vector<PixelColorHistogramValue> VizKit::VisualHistogram::PixelColorHistogram |
Vector of histogram values.
typedef PixelColorHistogram::iterator VizKit::VisualHistogram::PixelColorHistogramIterator |
The PixelColorHistogramIterator is an iterator of the PixelColorHistogram.
VizKit::VisualHistogram::VisualHistogram | ( | ) | [private] |
The constructor.
VisualHistogram is a collection of static methods. Class does not need any instances. Constructor is private and not implemented.
VizKit::VisualHistogram::~VisualHistogram | ( | ) | [private] |
The destructor.
VisualHistogram is a collection of static methods. Class does not need any instances. Destructor is private and not implemented.
VisualHistogram::PixelColorHistogram VisualHistogram::createHistogramOfRGBPixels | ( | std::vector< PixelColor > & | inputValues | ) | [static] |
Creates a histogram of ARGB PixelColor values.
inputValues | Array of PixelColor values. |
void VisualHistogram::initCentroids | ( | const std::vector< PixelColor > & | inputValues, |
const uint32 | requestedNumberOfCentroids, | ||
std::vector< PixelColor > & | centroids | ||
) | [static, private] |
Initializes the centroids of the histogram.
inputValues | The input values. | |
requestedNumberOfCentroids | The requested number of centroids. | |
[out] | centroids | The centroid values. The number of centroids can be lower than the requested number of centroids. |
VisualHistogram::PixelColorHistogram VisualHistogram::thresholdPass | ( | PixelColorHistogram & | inputValues | ) | [static, private] |
Normalizes PixelColor values by merging similar ones.
inputValues | The histogram input values. |