43 #ifndef __RGB_COLOR_MODEL_H__
44 #define __RGB_COLOR_MODEL_H__
74 void Reset(
int nMaxNumberOfTriplets);
83 void SetFactor(
float fFactor) { m_fFactor = fFactor; }
96 Mat3d inverse_rgb_covariance;
99 int m_nMaxNumberOfTriplets;
100 int m_nCurrentPosition;
bool AddRGBTriplet(int r, int g, int b)
void SetInverseCovariance(const Mat3d &inverse_covariance)
bool LoadFromFile(const char *pFileName)
void Reset(int nMaxNumberOfTriplets)
void SetMean(const Vec3d &mean)
void CalculateColorModel()
bool SaveToFile(const char *pFileName)
Data structure for the representation of a 3D vector.
float CalculateColorDistanceSquared(int r, int g, int b)
Training and application of an RGB color model on the basis of the Mahalanobis distance.
Data structure for the representation of a 3x3 matrix.
void SetFactor(float fFactor)
float CalculateColorProbability(const Vec3d &rgb)