All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
motld::Histogram Class Reference

ultra discrete color histograms intended to be used as (weak) classifier asset More...

#include <Histogram.h>

List of all members.

Public Member Functions

unsigned char * debugImage (const int &bin, int &sideLength) const
 creates a debug image with colors which are maped to same histogram value
floatgetColorDistribution (const unsigned char *const rgb, const int &size) const
 creates histogram from whole image
floatgetColorDistribution (const unsigned char *const rgb, const int &width, const int &height) const
 creates histogram from whole image
floatgetColorDistribution (const unsigned char *const rgb, const int &width, const int &height, const ObjectBox &box) const
 creates histogram from image section

Static Public Member Functions

static float compareColorDistribution (const float *const hist1, const float *const hist2)
 compares two histograms by performing a normalized chi-squared test on their average
static HistogramgetInstance ()
 get instance of histogram generating singleton

Private Member Functions

 Histogram ()
 ~Histogram ()

Static Private Member Functions

static float chiSquare (const float *const correctHistogram, const float *const toCheck, const int &n)
static float chiSquareSym (const float *const distr1, const float *const distr2, const int &n)
static void toHS (const float &r, const float &g, const float &b, float &h, float &s)

Private Attributes

unsigned char * ivLookupRGB

Static Private Attributes

static HistogramivInstance = NULL

Detailed Description

ultra discrete color histograms intended to be used as (weak) classifier asset

Definition at line 35 of file Histogram.h.


Constructor & Destructor Documentation

Definition at line 73 of file Histogram.h.

Definition at line 110 of file Histogram.h.


Member Function Documentation

float motld::Histogram::chiSquare ( const float *const  correctHistogram,
const float *const  toCheck,
const int &  n 
) [static, private]

Definition at line 288 of file Histogram.h.

float motld::Histogram::chiSquareSym ( const float *const  distr1,
const float *const  distr2,
const int &  n 
) [inline, static, private]

Definition at line 276 of file Histogram.h.

compares two histograms by performing a normalized chi-squared test on their average

Definition at line 207 of file Histogram.h.

unsigned char * motld::Histogram::debugImage ( const int &  bin,
int &  sideLength 
) const

creates a debug image with colors which are maped to same histogram value

Definition at line 212 of file Histogram.h.

float * motld::Histogram::getColorDistribution ( const unsigned char *const  rgb,
const int &  size 
) const

creates histogram from whole image

Definition at line 116 of file Histogram.h.

float * motld::Histogram::getColorDistribution ( const unsigned char *const  rgb,
const int &  width,
const int &  height 
) const

creates histogram from whole image

Definition at line 153 of file Histogram.h.

float * motld::Histogram::getColorDistribution ( const unsigned char *const  rgb,
const int &  width,
const int &  height,
const ObjectBox box 
) const

creates histogram from image section

Definition at line 158 of file Histogram.h.

get instance of histogram generating singleton

Definition at line 64 of file Histogram.h.

void motld::Histogram::toHS ( const float r,
const float g,
const float b,
float h,
float s 
) [static, private]

Definition at line 260 of file Histogram.h.


Member Data Documentation

Definition at line 58 of file Histogram.h.

unsigned char* motld::Histogram::ivLookupRGB [private]

Definition at line 59 of file Histogram.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


motld
Author(s): Jost Tobias Springenberg, Jan Wuelfing
autogenerated on Wed Dec 26 2012 16:24:49