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::EMClassifier ( unsigned int  nelements = 200)

Definition at line 36 of file chromaticmask.cpp.

Member Function Documentation

◆ addSample()

void EMClassifier::addSample ( uchar  s)
inline

Definition at line 47 of file chromaticmask.h.

◆ classify()

bool EMClassifier::classify ( uchar  s)
inline

Definition at line 50 of file chromaticmask.h.

◆ clearSamples()

void EMClassifier::clearSamples ( )
inline

Definition at line 48 of file chromaticmask.h.

◆ getProb()

double EMClassifier::getProb ( uchar  s)
inline

Definition at line 51 of file chromaticmask.h.

◆ numsamples()

unsigned int EMClassifier::numsamples ( )
inline

Definition at line 52 of file chromaticmask.h.

◆ setProb()

void EMClassifier::setProb ( double  p)
inline

Definition at line 53 of file chromaticmask.h.

◆ train()

void EMClassifier::train ( )

Definition at line 55 of file chromaticmask.cpp.

Member Data Documentation

◆ _classifier

cv::EM EMClassifier::_classifier
private

Definition at line 61 of file chromaticmask.h.

◆ _histogram

double EMClassifier::_histogram[256]
private

Definition at line 66 of file chromaticmask.h.

◆ _inside

bool EMClassifier::_inside[256]
private

Definition at line 64 of file chromaticmask.h.

◆ _nelem

unsigned int EMClassifier::_nelem
private

Definition at line 67 of file chromaticmask.h.

◆ _prob

double EMClassifier::_prob[256]
private

Definition at line 65 of file chromaticmask.h.

◆ _samples

vector< uchar > EMClassifier::_samples
private

Definition at line 63 of file chromaticmask.h.

◆ _threshProb

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 Feb 28 2022 21:41:30