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 1574 of file fgbgsegment.cpp.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
m model
p Probabilities of pixel belonging to that model
s Sum of probabilities

Definition at line 1587 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 1591 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 1596 of file fgbgsegment.cpp.


Member Data Documentation

Color model.

Definition at line 1576 of file fgbgsegment.cpp.

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

Probabilities of pixel belonging to that model.

Definition at line 1578 of file fgbgsegment.cpp.

float& ModelWorker::sumProb [private]

Sum of probabilities.

Definition at line 1580 of file fgbgsegment.cpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Friends Defines


active_realtime_segmentation
Author(s): Marten Bjorkman. Maintained by Jeannette Bohg
autogenerated on Fri Jan 11 09:51:13 2013