Public Member Functions | Private Attributes
EMClassifier Class Reference

#include <chromaticmask.h>

List of all members.

Public Member Functions

void addSample (uchar s)
bool classify (uchar s)
void clearSamples ()
 EMClassifier (unsigned int nelements=200)
double getProb (uchar s)
unsigned int numsamples ()
void setProb (double p)
void train ()

Private Attributes

cv::EM _classifier
double _histogram [256]
bool _inside [256]
unsigned int _nelem
double _prob [256]
vector< uchar > _samples
double _threshProb

Detailed Description

Definition at line 43 of file chromaticmask.h.


Constructor & Destructor Documentation

EMClassifier::EMClassifier ( unsigned int  nelements = 200)

Definition at line 36 of file chromaticmask.cpp.


Member Function Documentation

void EMClassifier::addSample ( uchar  s) [inline]

Definition at line 46 of file chromaticmask.h.

bool EMClassifier::classify ( uchar  s) [inline]

Definition at line 49 of file chromaticmask.h.

void EMClassifier::clearSamples ( ) [inline]

Definition at line 47 of file chromaticmask.h.

double EMClassifier::getProb ( uchar  s) [inline]

Definition at line 50 of file chromaticmask.h.

unsigned int EMClassifier::numsamples ( ) [inline]

Definition at line 51 of file chromaticmask.h.

void EMClassifier::setProb ( double  p) [inline]

Definition at line 52 of file chromaticmask.h.

Definition at line 47 of file chromaticmask.cpp.


Member Data Documentation

cv::EM EMClassifier::_classifier [private]

Definition at line 57 of file chromaticmask.h.

double EMClassifier::_histogram[256] [private]

Definition at line 61 of file chromaticmask.h.

bool EMClassifier::_inside[256] [private]

Definition at line 59 of file chromaticmask.h.

unsigned int EMClassifier::_nelem [private]

Definition at line 62 of file chromaticmask.h.

double EMClassifier::_prob[256] [private]

Definition at line 60 of file chromaticmask.h.

vector<uchar> EMClassifier::_samples [private]

Definition at line 58 of file chromaticmask.h.

double EMClassifier::_threshProb [private]

Definition at line 63 of file chromaticmask.h.


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


ar_sys
Author(s): Hamdi Sahloul , Rafael Muñoz Salinas , Bence Magyar
autogenerated on Thu Aug 27 2015 12:23:55