#include <legacy.hpp>
Inherits CvStatModel.
List of all members.
Public Types |
| enum | { COV_MAT_SPHERICAL = cv::EM::COV_MAT_SPHERICAL,
COV_MAT_DIAGONAL = cv::EM::COV_MAT_DIAGONAL,
COV_MAT_GENERIC = cv::EM::COV_MAT_GENERIC
} |
| enum | { START_E_STEP = cv::EM::START_E_STEP,
START_M_STEP = cv::EM::START_M_STEP,
START_AUTO_STEP = cv::EM::START_AUTO_STEP
} |
Public Member Functions |
| CV_WRAP | CvEM () |
| | CvEM (const CvMat *samples, const CvMat *sampleIdx=0, CvEMParams params=CvEMParams(), CvMat *labels=0) |
| virtual | ~CvEM () |
| virtual bool | train (const CvMat *samples, const CvMat *sampleIdx=0, CvEMParams params=CvEMParams(), CvMat *labels=0) |
| virtual float | predict (const CvMat *sample, CV_OUT CvMat *probs) const |
| CV_WRAP | CvEM (const cv::Mat &samples, const cv::Mat &sampleIdx=cv::Mat(), CvEMParams params=CvEMParams()) |
| virtual CV_WRAP bool | train (const cv::Mat &samples, const cv::Mat &sampleIdx=cv::Mat(), CvEMParams params=CvEMParams(), CV_OUT cv::Mat *labels=0) |
| virtual CV_WRAP float | predict (const cv::Mat &sample, CV_OUT cv::Mat *probs=0) const |
| virtual CV_WRAP double | calcLikelihood (const cv::Mat &sample) const |
| CV_WRAP int | getNClusters () const |
| CV_WRAP cv::Mat | getMeans () const |
| CV_WRAP void | getCovs (CV_OUT std::vector< cv::Mat > &covs) const |
| CV_WRAP cv::Mat | getWeights () const |
| CV_WRAP cv::Mat | getProbs () const |
| CV_WRAP double | getLikelihood () const |
| virtual CV_WRAP void | clear () |
| int | get_nclusters () const |
| const CvMat * | get_means () const |
| const CvMat ** | get_covs () const |
| const CvMat * | get_weights () const |
| const CvMat * | get_probs () const |
| double | get_log_likelihood () const |
| virtual void | read (CvFileStorage *fs, CvFileNode *node) |
| virtual void | write (CvFileStorage *fs, const char *name) const |
| virtual CV_WRAP void | save (const char *filename, const char *name=0) const |
| virtual CV_WRAP void | load (const char *filename, const char *name=0) |
Protected Member Functions |
| void | set_mat_hdrs () |
Protected Attributes |
| cv::EM | emObj |
| cv::Mat | probs |
| double | logLikelihood |
| CvMat | meansHdr |
| std::vector< CvMat > | covsHdrs |
| std::vector< CvMat * > | covsPtrs |
| CvMat | weightsHdr |
| CvMat | probsHdr |
| const char * | default_model_name |
Member Enumeration Documentation
- Enumerator:
| COV_MAT_SPHERICAL |
|
| COV_MAT_DIAGONAL |
|
| COV_MAT_GENERIC |
|
- Enumerator:
| START_E_STEP |
|
| START_M_STEP |
|
| START_AUTO_STEP |
|
Constructor & Destructor Documentation
Member Function Documentation
| virtual CV_WRAP void CvStatModel::save |
( |
const char * |
filename, |
|
|
const char * |
name = 0 |
|
) |
| const [virtual, inherited] |
| virtual CV_WRAP void CvStatModel::load |
( |
const char * |
filename, |
|
|
const char * |
name = 0 |
|
) |
| [virtual, inherited] |
Member Data Documentation
The documentation for this class was generated from the following file: