IVT
CRGBColorModel Class Reference

Training and application of an RGB color model on the basis of the Mahalanobis distance. More...

#include <RGBColorModel.h>

Public Member Functions

 CRGBColorModel ()
 
 ~CRGBColorModel ()
 
void Reset (int nMaxNumberOfTriplets)
 
bool AddRGBTriplet (int r, int g, int b)
 
void CalculateColorModel ()
 
bool LoadFromFile (const char *pFileName)
 
bool SaveToFile (const char *pFileName)
 
void SetFactor (float fFactor)
 
void SetMean (const Vec3d &mean)
 
void SetInverseCovariance (const Mat3d &inverse_covariance)
 
float CalculateColorProbability (const Vec3d &rgb)
 
float CalculateColorDistanceSquared (int r, int g, int b)
 

Detailed Description

Training and application of an RGB color model on the basis of the Mahalanobis distance.

Definition at line 63 of file RGBColorModel.h.

Constructor & Destructor Documentation

CRGBColorModel::CRGBColorModel ( )

Definition at line 61 of file RGBColorModel.cpp.

CRGBColorModel::~CRGBColorModel ( )

Definition at line 69 of file RGBColorModel.cpp.

Member Function Documentation

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.

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.


The documentation for this class was generated from the following files: