Training and application of an RGB color model on the basis of the Mahalanobis distance. More...
#include <RGBColorModel.h>
Public Member Functions | |
bool | AddRGBTriplet (int r, int g, int b) |
float | CalculateColorDistanceSquared (int r, int g, int b) |
void | CalculateColorModel () |
float | CalculateColorProbability (const Vec3d &rgb) |
CRGBColorModel () | |
bool | LoadFromFile (const char *pFileName) |
void | Reset (int nMaxNumberOfTriplets) |
bool | SaveToFile (const char *pFileName) |
void | SetFactor (float fFactor) |
void | SetInverseCovariance (const Mat3d &inverse_covariance) |
void | SetMean (const Vec3d &mean) |
~CRGBColorModel () | |
Private Attributes | |
Mat3d | inverse_rgb_covariance |
float | m_fFactor |
int | m_nCurrentPosition |
int | m_nMaxNumberOfTriplets |
Vec3d * | m_pTriplets |
Vec3d | rgb_mean |
Training and application of an RGB color model on the basis of the Mahalanobis distance.
Definition at line 63 of file RGBColorModel.h.
Definition at line 61 of file RGBColorModel.cpp.
Definition at line 69 of file RGBColorModel.cpp.
bool CRGBColorModel::AddRGBTriplet | ( | int | r, |
int | g, | ||
int | b | ||
) |
Definition at line 91 of file RGBColorModel.cpp.
float CRGBColorModel::CalculateColorDistanceSquared | ( | int | r, |
int | g, | ||
int | b | ||
) |
Definition at line 146 of file RGBColorModel.cpp.
Definition at line 101 of file RGBColorModel.cpp.
float CRGBColorModel::CalculateColorProbability | ( | const Vec3d & | rgb | ) |
Definition at line 137 of file RGBColorModel.cpp.
bool CRGBColorModel::LoadFromFile | ( | const char * | pFileName | ) |
Definition at line 155 of file RGBColorModel.cpp.
void CRGBColorModel::Reset | ( | int | nMaxNumberOfTriplets | ) |
Definition at line 80 of file RGBColorModel.cpp.
bool CRGBColorModel::SaveToFile | ( | const char * | pFileName | ) |
Definition at line 181 of file RGBColorModel.cpp.
void CRGBColorModel::SetFactor | ( | float | fFactor | ) | [inline] |
Definition at line 83 of file RGBColorModel.h.
void CRGBColorModel::SetInverseCovariance | ( | const Mat3d & | inverse_covariance | ) |
Definition at line 212 of file RGBColorModel.cpp.
void CRGBColorModel::SetMean | ( | const Vec3d & | mean | ) |
Definition at line 207 of file RGBColorModel.cpp.
Mat3d CRGBColorModel::inverse_rgb_covariance [private] |
Definition at line 96 of file RGBColorModel.h.
float CRGBColorModel::m_fFactor [private] |
Definition at line 101 of file RGBColorModel.h.
int CRGBColorModel::m_nCurrentPosition [private] |
Definition at line 100 of file RGBColorModel.h.
int CRGBColorModel::m_nMaxNumberOfTriplets [private] |
Definition at line 99 of file RGBColorModel.h.
Vec3d* CRGBColorModel::m_pTriplets [private] |
Definition at line 98 of file RGBColorModel.h.
Vec3d CRGBColorModel::rgb_mean [private] |
Definition at line 95 of file RGBColorModel.h.