public class BackgroundSubtractorGMG extends BackgroundSubtractor
Modifier | Constructor and Description |
---|---|
protected |
BackgroundSubtractorGMG(long addr) |
Modifier and Type | Method and Description |
---|---|
static BackgroundSubtractorGMG |
__fromPtr__(long addr) |
protected void |
finalize() |
double |
getBackgroundPrior()
Returns the prior probability that each individual pixel is a background pixel.
|
double |
getDecisionThreshold()
Returns the value of decision threshold.
|
double |
getDefaultLearningRate()
Returns the learning rate of the algorithm.
|
int |
getMaxFeatures()
Returns total number of distinct colors to maintain in histogram.
|
double |
getMaxVal()
Returns the maximum value taken on by pixels in image sequence.
|
double |
getMinVal()
Returns the minimum value taken on by pixels in image sequence.
|
int |
getNumFrames()
Returns the number of frames used to initialize background model.
|
int |
getQuantizationLevels()
Returns the parameter used for quantization of color-space.
|
int |
getSmoothingRadius()
Returns the kernel radius used for morphological operations
|
boolean |
getUpdateBackgroundModel()
Returns the status of background model update
|
void |
setBackgroundPrior(double bgprior)
Sets the prior probability that each individual pixel is a background pixel.
|
void |
setDecisionThreshold(double thresh)
Sets the value of decision threshold.
|
void |
setDefaultLearningRate(double lr)
Sets the learning rate of the algorithm.
|
void |
setMaxFeatures(int maxFeatures)
Sets total number of distinct colors to maintain in histogram.
|
void |
setMaxVal(double val)
Sets the maximum value taken on by pixels in image sequence.
|
void |
setMinVal(double val)
Sets the minimum value taken on by pixels in image sequence.
|
void |
setNumFrames(int nframes)
Sets the number of frames used to initialize background model.
|
void |
setQuantizationLevels(int nlevels)
Sets the parameter used for quantization of color-space
|
void |
setSmoothingRadius(int radius)
Sets the kernel radius used for morphological operations
|
void |
setUpdateBackgroundModel(boolean update)
Sets the status of background model update
|
apply, apply, getBackgroundImage
clear, empty, getDefaultName, getNativeObjAddr, save
public static BackgroundSubtractorGMG __fromPtr__(long addr)
public boolean getUpdateBackgroundModel()
public double getBackgroundPrior()
public double getDecisionThreshold()
public double getDefaultLearningRate()
public double getMaxVal()
public double getMinVal()
public int getMaxFeatures()
public int getNumFrames()
public int getQuantizationLevels()
public int getSmoothingRadius()
public void setBackgroundPrior(double bgprior)
bgprior
- automatically generatedpublic void setDecisionThreshold(double thresh)
thresh
- automatically generatedpublic void setDefaultLearningRate(double lr)
lr
- automatically generatedpublic void setMaxFeatures(int maxFeatures)
maxFeatures
- automatically generatedpublic void setMaxVal(double val)
val
- automatically generatedpublic void setMinVal(double val)
val
- automatically generatedpublic void setNumFrames(int nframes)
nframes
- automatically generatedpublic void setQuantizationLevels(int nlevels)
nlevels
- automatically generatedpublic void setSmoothingRadius(int radius)
radius
- automatically generatedpublic void setUpdateBackgroundModel(boolean update)
update
- automatically generatedprotected void finalize() throws Throwable
finalize
in class BackgroundSubtractor
Throwable
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2