added updateBackgroundModel parameter

This commit is contained in:
Vladislav Vinogradov
2012-08-09 14:46:27 +04:00
parent 7f3296566c
commit 1ecf491373
3 changed files with 37 additions and 27 deletions

View File

@@ -2156,7 +2156,7 @@ public:
*/
void operator ()(const GpuMat& frame, GpuMat& fgmask, float learningRate = -1.0f, Stream& stream = Stream::Null());
//! releases all inner buffers
//! Releases all inner buffers
void release();
//! Total number of distinct colors to maintain in histogram.
@@ -2174,12 +2174,15 @@ public:
//! Prior probability that any given pixel is a background pixel. A sensitivity parameter.
float backgroundPrior;
//! value above which pixel is determined to be FG.
//! Value above which pixel is determined to be FG.
float decisionThreshold;
//! smoothing radius, in pixels, for cleaning up FG image.
//! Smoothing radius, in pixels, for cleaning up FG image.
int smoothingRadius;
//! Perform background model update.
bool updateBackgroundModel;
private:
float maxVal_, minVal_;