Public Member Functions | Private Attributes
ModelWorker Class Reference

Convenience class for multi-threading. More...

List of all members.

Public Member Functions

 ModelWorker (FgBgSegment::ColorModel &m, Image< float > &p, float &s)
 Constructor.
void operator() ()
 Operator to Update model and create histograms based on updated model with multi-threading.
void runModel ()
 Operator to Update model and create histograms based on updated model with single-threading.

Private Attributes

FgBgSegment::ColorModelmodel
 Color model.
Image< float > & probs
 Probabilities of pixel belonging to that model.
float & sumProb
 Sum of probabilities.

Detailed Description

Convenience class for multi-threading.

Definition at line 1576 of file fgbgsegment.cpp.


Constructor & Destructor Documentation

ModelWorker::ModelWorker ( FgBgSegment::ColorModel m,
Image< float > &  p,
float &  s 
) [inline]

Constructor.

Parameters:
mmodel
pProbabilities of pixel belonging to that model
sSum of probabilities

Definition at line 1589 of file fgbgsegment.cpp.


Member Function Documentation

void ModelWorker::operator() ( ) [inline]

Operator to Update model and create histograms based on updated model with multi-threading.

Definition at line 1593 of file fgbgsegment.cpp.

void ModelWorker::runModel ( ) [inline]

Operator to Update model and create histograms based on updated model with single-threading.

Definition at line 1598 of file fgbgsegment.cpp.


Member Data Documentation

Color model.

Definition at line 1578 of file fgbgsegment.cpp.

Image<float>& ModelWorker::probs [private]

Probabilities of pixel belonging to that model.

Definition at line 1580 of file fgbgsegment.cpp.

float& ModelWorker::sumProb [private]

Sum of probabilities.

Definition at line 1582 of file fgbgsegment.cpp.


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


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Fri Jan 3 2014 12:02:50