Convenience class for multi-threading. More...
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::ColorModel & | model |
Color model. | |
Image< float > & | probs |
Probabilities of pixel belonging to that model. | |
float & | sumProb |
Sum of probabilities. |
Convenience class for multi-threading.
Definition at line 1574 of file fgbgsegment.cpp.
ModelWorker::ModelWorker | ( | FgBgSegment::ColorModel & | m, | |
Image< float > & | p, | |||
float & | s | |||
) | [inline] |
Constructor.
m | model | |
p | Probabilities of pixel belonging to that model | |
s | Sum of probabilities |
Definition at line 1587 of file fgbgsegment.cpp.
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.
FgBgSegment::ColorModel& ModelWorker::model [private] |
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.