$search
Public Member Functions | |
void | addSample (int ci, Vec3f color) |
void | endLearning () |
GMM (Mat &_model) | |
void | initLearning () |
float | operator() (int ci, Vec3f color) const |
float | operator() (Vec3f color) const |
int | whichComponent (Vec3f color) const |
Static Public Attributes | |
static const int | componentsCount = 5 |
Private Member Functions | |
void | calcInverseCovAndDeterm (int ci) |
Private Attributes | |
float * | coefs |
float * | cov |
float | covDeterms [componentsCount] |
float | inverseCovs [componentsCount][3][3] |
float * | mean |
Mat | model |
float | prods [componentsCount][3][3] |
int | sampleCounts [componentsCount] |
float | sums [componentsCount][3] |
int | totalSampleCount |
Definition at line 60 of file grabcut_3d.cpp.
GMM::GMM | ( | Mat & | _model | ) |
Definition at line 89 of file grabcut_3d.cpp.
void GMM::addSample | ( | int | ci, | |
Vec3f | color | |||
) |
Definition at line 168 of file grabcut_3d.cpp.
void GMM::calcInverseCovAndDeterm | ( | int | ci | ) | [private] |
Definition at line 202 of file grabcut_3d.cpp.
void GMM::endLearning | ( | ) |
Definition at line 178 of file grabcut_3d.cpp.
void GMM::initLearning | ( | ) |
Definition at line 155 of file grabcut_3d.cpp.
float GMM::operator() | ( | int | ci, | |
Vec3f | color | |||
) | const |
Definition at line 119 of file grabcut_3d.cpp.
float GMM::operator() | ( | Vec3f | color | ) | const |
Definition at line 111 of file grabcut_3d.cpp.
int GMM::whichComponent | ( | Vec3f | color | ) | const |
Definition at line 138 of file grabcut_3d.cpp.
float* GMM::coefs [private] |
Definition at line 76 of file grabcut_3d.cpp.
const int GMM::componentsCount = 5 [static] |
Definition at line 63 of file grabcut_3d.cpp.
float* GMM::cov [private] |
Definition at line 78 of file grabcut_3d.cpp.
float GMM::covDeterms[componentsCount] [private] |
Definition at line 81 of file grabcut_3d.cpp.
float GMM::inverseCovs[componentsCount][3][3] [private] |
Definition at line 80 of file grabcut_3d.cpp.
float* GMM::mean [private] |
Definition at line 77 of file grabcut_3d.cpp.
Mat GMM::model [private] |
Definition at line 75 of file grabcut_3d.cpp.
float GMM::prods[componentsCount][3][3] [private] |
Definition at line 84 of file grabcut_3d.cpp.
int GMM::sampleCounts[componentsCount] [private] |
Definition at line 85 of file grabcut_3d.cpp.
float GMM::sums[componentsCount][3] [private] |
Definition at line 83 of file grabcut_3d.cpp.
int GMM::totalSampleCount [private] |
Definition at line 86 of file grabcut_3d.cpp.