Package org.opencv.bgsegm
Class BackgroundSubtractorGMG
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.video.BackgroundSubtractor
-
- org.opencv.bgsegm.BackgroundSubtractorGMG
-
public class BackgroundSubtractorGMG extends BackgroundSubtractor
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BackgroundSubtractorGMG(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundSubtractorGMG
__fromPtr__(long addr)
protected void
finalize()
double
getBackgroundPrior()
double
getDecisionThreshold()
double
getDefaultLearningRate()
int
getMaxFeatures()
double
getMaxVal()
double
getMinVal()
int
getNumFrames()
int
getQuantizationLevels()
int
getSmoothingRadius()
boolean
getUpdateBackgroundModel()
void
setBackgroundPrior(double bgprior)
void
setDecisionThreshold(double thresh)
void
setDefaultLearningRate(double lr)
void
setMaxFeatures(int maxFeatures)
void
setMaxVal(double val)
void
setMinVal(double val)
void
setNumFrames(int nframes)
void
setQuantizationLevels(int nlevels)
void
setSmoothingRadius(int radius)
void
setUpdateBackgroundModel(boolean update)
-
Methods inherited from class org.opencv.video.BackgroundSubtractor
apply, apply, getBackgroundImage
-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static BackgroundSubtractorGMG __fromPtr__(long addr)
-
getUpdateBackgroundModel
public boolean getUpdateBackgroundModel()
-
getBackgroundPrior
public double getBackgroundPrior()
-
getDecisionThreshold
public double getDecisionThreshold()
-
getDefaultLearningRate
public double getDefaultLearningRate()
-
getMaxVal
public double getMaxVal()
-
getMinVal
public double getMinVal()
-
getMaxFeatures
public int getMaxFeatures()
-
getNumFrames
public int getNumFrames()
-
getQuantizationLevels
public int getQuantizationLevels()
-
getSmoothingRadius
public int getSmoothingRadius()
-
setBackgroundPrior
public void setBackgroundPrior(double bgprior)
-
setDecisionThreshold
public void setDecisionThreshold(double thresh)
-
setDefaultLearningRate
public void setDefaultLearningRate(double lr)
-
setMaxFeatures
public void setMaxFeatures(int maxFeatures)
-
setMaxVal
public void setMaxVal(double val)
-
setMinVal
public void setMinVal(double val)
-
setNumFrames
public void setNumFrames(int nframes)
-
setQuantizationLevels
public void setQuantizationLevels(int nlevels)
-
setSmoothingRadius
public void setSmoothingRadius(int radius)
-
setUpdateBackgroundModel
public void setUpdateBackgroundModel(boolean update)
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classBackgroundSubtractor
- Throws:
java.lang.Throwable
-
-