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.
| CRGBColorModel::CRGBColorModel | ( | ) |
Definition at line 61 of file RGBColorModel.cpp.
| CRGBColorModel::~CRGBColorModel | ( | ) |
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.
| void CRGBColorModel::CalculateColorModel | ( | ) |
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.
|
inline |
Definition at line 83 of file RGBColorModel.h.
Definition at line 212 of file RGBColorModel.cpp.
Definition at line 207 of file RGBColorModel.cpp.
|
private |
Definition at line 96 of file RGBColorModel.h.
|
private |
Definition at line 101 of file RGBColorModel.h.
|
private |
Definition at line 100 of file RGBColorModel.h.
|
private |
Definition at line 99 of file RGBColorModel.h.
|
private |
Definition at line 98 of file RGBColorModel.h.
|
private |
Definition at line 95 of file RGBColorModel.h.