Public Member Functions | Private Attributes
CRGBColorModel Class Reference

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

#include <RGBColorModel.h>

List of all members.

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
Vec3dm_pTriplets
Vec3d rgb_mean

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

Definition at line 61 of file RGBColorModel.cpp.

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.

Definition at line 101 of file RGBColorModel.cpp.

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.


Member Data Documentation

Definition at line 96 of file RGBColorModel.h.

float CRGBColorModel::m_fFactor [private]

Definition at line 101 of file RGBColorModel.h.

Definition at line 100 of file RGBColorModel.h.

Definition at line 99 of file RGBColorModel.h.

Definition at line 98 of file RGBColorModel.h.

Definition at line 95 of file RGBColorModel.h.


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


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Thu Jun 6 2019 21:46:58