44
#ifndef OPENCV_BACKGROUND_SEGM_HPP
45
#define OPENCV_BACKGROUND_SEGM_HPP
47
#include "opencv2/core.hpp"
72
CV_WRAP
virtual
void
apply(InputArray image,
OutputArray
fgmask,
double
learningRate=-1) = 0;
81
CV_WRAP
virtual
void
getBackgroundImage(
OutputArray
backgroundImage)
const
= 0;
95
CV_WRAP
virtual
int
getHistory()
const
= 0;
98
CV_WRAP
virtual
void
setHistory(
int
history) = 0;
102
CV_WRAP
virtual
int
getNMixtures()
const
= 0;
107
CV_WRAP
virtual
void
setNMixtures(
int
nmixtures) = 0;
115
CV_WRAP
virtual
double
getBackgroundRatio()
const
= 0;
118
CV_WRAP
virtual
void
setBackgroundRatio(
double
ratio) = 0;
125
CV_WRAP
virtual
double
getVarThreshold()
const
= 0;
128
CV_WRAP
virtual
void
setVarThreshold(
double
varThreshold) = 0;
138
CV_WRAP
virtual
double
getVarThresholdGen()
const
= 0;
141
CV_WRAP
virtual
void
setVarThresholdGen(
double
varThresholdGen) = 0;
145
CV_WRAP
virtual
double
getVarInit()
const
= 0;
148
CV_WRAP
virtual
void
setVarInit(
double
varInit) = 0;
150
CV_WRAP
virtual
double
getVarMin()
const
= 0;
151
CV_WRAP
virtual
void
setVarMin(
double
varMin) = 0;
153
CV_WRAP
virtual
double
getVarMax()
const
= 0;
154
CV_WRAP
virtual
void
setVarMax(
double
varMax) = 0;
162
CV_WRAP
virtual
double
getComplexityReductionThreshold()
const
= 0;
165
CV_WRAP
virtual
void
setComplexityReductionThreshold(
double
ct) = 0;
172
CV_WRAP
virtual
bool
getDetectShadows()
const
= 0;
175
CV_WRAP
virtual
void
setDetectShadows(
bool
detectShadows) = 0;
182
CV_WRAP
virtual
int
getShadowValue()
const
= 0;
185
CV_WRAP
virtual
void
setShadowValue(
int
value) = 0;
194
CV_WRAP
virtual
double
getShadowThreshold()
const
= 0;
197
CV_WRAP
virtual
void
setShadowThreshold(
double
threshold) = 0;
208
CV_WRAP
virtual
void
apply(InputArray image,
OutputArray
fgmask,
double
learningRate=-1) CV_OVERRIDE = 0;
222
bool
detectShadows=true);
234
CV_WRAP
virtual
int
getHistory()
const
= 0;
237
CV_WRAP
virtual
void
setHistory(
int
history) = 0;
241
CV_WRAP
virtual
int
getNSamples()
const
= 0;
246
CV_WRAP
virtual
void
setNSamples(
int
_nN) = 0;
253
CV_WRAP
virtual
double
getDist2Threshold()
const
= 0;
256
CV_WRAP
virtual
void
setDist2Threshold(
double
_dist2Threshold) = 0;
263
CV_WRAP
virtual
int
getkNNSamples()
const
= 0;
266
CV_WRAP
virtual
void
setkNNSamples(
int
_nkNN) = 0;
273
CV_WRAP
virtual
bool
getDetectShadows()
const
= 0;
276
CV_WRAP
virtual
void
setDetectShadows(
bool
detectShadows) = 0;
283
CV_WRAP
virtual
int
getShadowValue()
const
= 0;
286
CV_WRAP
virtual
void
setShadowValue(
int
value) = 0;
295
CV_WRAP
virtual
double
getShadowThreshold()
const
= 0;
298
CV_WRAP
virtual
void
setShadowThreshold(
double
threshold) = 0;
311
bool
detectShadows=
true);
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition:
mat.hpp:295
This is a base class for all more or less complex algorithms in OpenCV
Definition:
core.hpp:3091
Base class for background/foreground segmentation. :
Definition:
background_segm.hpp:61
K-nearest neighbours - based Background/Foreground Segmentation Algorithm.
Definition:
background_segm.hpp:230
Gaussian Mixture-based Background/Foreground Segmentation Algorithm.
Definition:
background_segm.hpp:91
CV_EXPORTS_W double threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type)
Applies a fixed-level threshold to each array element.
CV_EXPORTS_W Ptr< BackgroundSubtractorKNN > createBackgroundSubtractorKNN(int history=500, double dist2Threshold=400.0, bool detectShadows=true)
Creates KNN Background Subtractor
CV_EXPORTS_W Ptr< BackgroundSubtractorMOG2 > createBackgroundSubtractorMOG2(int history=500, double varThreshold=16, bool detectShadows=true)
Creates MOG2 Background Subtractor
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
cvstd_wrapper.hpp:74