$search

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 1575 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 1588 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 1592 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 1597 of file fgbgsegment.cpp.


Member Data Documentation

Color model.

Definition at line 1577 of file fgbgsegment.cpp.

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

Probabilities of pixel belonging to that model.

Definition at line 1579 of file fgbgsegment.cpp.

float& ModelWorker::sumProb [private]

Sum of probabilities.

Definition at line 1581 of file fgbgsegment.cpp.


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


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Tue Mar 5 14:01:57 2013