ultra discrete color histograms intended to be used as (weak) classifier asset More...
#include <Histogram.h>
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 | |
float * | getColorDistribution (const unsigned char *const rgb, const int &size) const |
creates histogram from whole image | |
float * | getColorDistribution (const unsigned char *const rgb, const int &width, const int &height) const |
creates histogram from whole image | |
float * | getColorDistribution (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 Histogram * | getInstance () |
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 Histogram * | ivInstance = NULL |
ultra discrete color histograms intended to be used as (weak) classifier asset
Definition at line 35 of file Histogram.h.
motld::Histogram::Histogram | ( | ) | [private] |
Definition at line 73 of file Histogram.h.
motld::Histogram::~Histogram | ( | ) | [private] |
Definition at line 110 of file Histogram.h.
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.
float motld::Histogram::compareColorDistribution | ( | const float *const | hist1, |
const float *const | hist2 | ||
) | [static] |
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.
Histogram * motld::Histogram::getInstance | ( | ) | [static] |
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.
Histogram * motld::Histogram::ivInstance = NULL [static, private] |
Definition at line 58 of file Histogram.h.
unsigned char* motld::Histogram::ivLookupRGB [private] |
Definition at line 59 of file Histogram.h.