30 #ifndef __FIREVISION_COLORMODEL_BAYES_HISTOS_TO_LUT_H_
31 #define __FIREVISION_COLORMODEL_BAYES_HISTOS_TO_LUT_H_
33 #include <fvutils/base/roi.h>
38 namespace firevision {
51 hint_t fg_object = H_UNKNOWN,
53 unsigned int h = 256);
56 std::string getName();
58 float getObjectProb(hint_t
object);
60 float getAPrioriProb(
unsigned int u,
63 float getAPrioriProb(
unsigned int y,
68 float getAPosterioriProb( hint_t
object,
71 float getAPosterioriProb( hint_t
object,
76 hint_t getMostLikelyObject(
unsigned int u,
78 hint_t getMostLikelyObject(
unsigned int y,
82 void setMinProbability(
float min_prob );
83 void setMinProbForColor(
float min_prob, hint_t hint );
89 void calculateLutValues(
bool penalty =
false );
93 void calculateLutAllColors();
94 void saveLut(
char *file);
95 void save(std::string filename);
98 std::map<hint_t, Histogram*> &histograms;
99 std::map<hint_t, unsigned int> numberOfOccurrences;
100 std::map<hint_t, float> object_probabilities;
109 float min_probability;
113 float min_prob_green;
114 float min_prob_yellow;
116 float min_prob_white;
117 float min_prob_black;