Public Member Functions | Private Attributes | List of all members
EMClassifier Class Reference

#include <chromaticmask.h>

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 44 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 47 of file chromaticmask.h.

bool EMClassifier::classify ( uchar  s)
inline

Definition at line 50 of file chromaticmask.h.

void EMClassifier::clearSamples ( )
inline

Definition at line 48 of file chromaticmask.h.

double EMClassifier::getProb ( uchar  s)
inline

Definition at line 51 of file chromaticmask.h.

unsigned int EMClassifier::numsamples ( )
inline

Definition at line 52 of file chromaticmask.h.

void EMClassifier::setProb ( double  p)
inline

Definition at line 53 of file chromaticmask.h.

void EMClassifier::train ( )

Definition at line 55 of file chromaticmask.cpp.

Member Data Documentation

cv::EM EMClassifier::_classifier
private

Definition at line 61 of file chromaticmask.h.

double EMClassifier::_histogram[256]
private

Definition at line 66 of file chromaticmask.h.

bool EMClassifier::_inside[256]
private

Definition at line 64 of file chromaticmask.h.

unsigned int EMClassifier::_nelem
private

Definition at line 67 of file chromaticmask.h.

double EMClassifier::_prob[256]
private

Definition at line 65 of file chromaticmask.h.

vector< uchar > EMClassifier::_samples
private

Definition at line 63 of file chromaticmask.h.

double EMClassifier::_threshProb
private

Definition at line 68 of file chromaticmask.h.


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


asr_aruco_marker_recognition
Author(s): Allgeyer Tobias, Meißner Pascal, Qattan Mohamad
autogenerated on Mon Jun 10 2019 12:40:22