VizKit  3.3.5
Classes | Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions
VizKit::VisualHistogram Class Reference

Creates histogram data. More...

#include <VisualHistogram.h>

List of all members.

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 > &centroids)
 Initializes the centroids of the histogram.
static
VisualHistogram::PixelColorHistogram 
thresholdPass (PixelColorHistogram &inputValues)
 Normalizes PixelColor values by merging similar ones.

Detailed Description

Creates histogram data.


Member Typedef Documentation

Vector of histogram values.

typedef PixelColorHistogram::iterator VizKit::VisualHistogram::PixelColorHistogramIterator

The PixelColorHistogramIterator is an iterator of the PixelColorHistogram.


Constructor & Destructor Documentation

The constructor.

VisualHistogram is a collection of static methods. Class does not need any instances. Constructor is private and not implemented.

The destructor.

VisualHistogram is a collection of static methods. Class does not need any instances. Destructor is private and not implemented.


Member Function Documentation

Creates a histogram of ARGB PixelColor values.

Parameters:
inputValuesArray of PixelColor values.
Remarks:
The inputValues are sorted inside this function. The histogram values are calculated with the k-means algorithm. Alpha value of PixelColor is not considered in this function (alpha has to be premultiplied before calling this function).
void VisualHistogram::initCentroids ( const std::vector< PixelColor > &  inputValues,
const uint32  requestedNumberOfCentroids,
std::vector< PixelColor > &  centroids 
) [static, private]

Initializes the centroids of the histogram.

Parameters:
inputValuesThe input values.
requestedNumberOfCentroidsThe requested number of centroids.
[out]centroidsThe centroid values. The number of centroids can be lower than the requested number of centroids.

Normalizes PixelColor values by merging similar ones.

Parameters:
inputValuesThe histogram input values.
Returns:
Normalized histogram.

The documentation for this class was generated from the following files:

Generated on Sun Oct 19 2014 00:33:18 for VizKit by doxygen 1.8.0