Package org.opencv.video
Class BackgroundSubtractorMOG2
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.video.BackgroundSubtractor
-
- org.opencv.video.BackgroundSubtractorMOG2
-
public class BackgroundSubtractorMOG2 extends BackgroundSubtractor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBackgroundSubtractorMOG2(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundSubtractorMOG2__fromPtr__(long addr)voidapply(Mat image, Mat fgmask)voidapply(Mat image, Mat fgmask, double learningRate)protected voidfinalize()doublegetBackgroundRatio()doublegetComplexityReductionThreshold()booleangetDetectShadows()intgetHistory()intgetNMixtures()doublegetShadowThreshold()intgetShadowValue()doublegetVarInit()doublegetVarMax()doublegetVarMin()doublegetVarThreshold()doublegetVarThresholdGen()voidsetBackgroundRatio(double ratio)voidsetComplexityReductionThreshold(double ct)voidsetDetectShadows(boolean detectShadows)voidsetHistory(int history)voidsetNMixtures(int nmixtures)voidsetShadowThreshold(double threshold)voidsetShadowValue(int value)voidsetVarInit(double varInit)voidsetVarMax(double varMax)voidsetVarMin(double varMin)voidsetVarThreshold(double varThreshold)voidsetVarThresholdGen(double varThresholdGen)-
Methods inherited from class org.opencv.video.BackgroundSubtractor
getBackgroundImage
-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static BackgroundSubtractorMOG2 __fromPtr__(long addr)
-
getDetectShadows
public boolean getDetectShadows()
-
getBackgroundRatio
public double getBackgroundRatio()
-
getComplexityReductionThreshold
public double getComplexityReductionThreshold()
-
getShadowThreshold
public double getShadowThreshold()
-
getVarInit
public double getVarInit()
-
getVarMax
public double getVarMax()
-
getVarMin
public double getVarMin()
-
getVarThreshold
public double getVarThreshold()
-
getVarThresholdGen
public double getVarThresholdGen()
-
getHistory
public int getHistory()
-
getNMixtures
public int getNMixtures()
-
getShadowValue
public int getShadowValue()
-
apply
public void apply(Mat image, Mat fgmask, double learningRate)
- Overrides:
applyin classBackgroundSubtractor
-
apply
public void apply(Mat image, Mat fgmask)
- Overrides:
applyin classBackgroundSubtractor
-
setBackgroundRatio
public void setBackgroundRatio(double ratio)
-
setComplexityReductionThreshold
public void setComplexityReductionThreshold(double ct)
-
setDetectShadows
public void setDetectShadows(boolean detectShadows)
-
setHistory
public void setHistory(int history)
-
setNMixtures
public void setNMixtures(int nmixtures)
-
setShadowThreshold
public void setShadowThreshold(double threshold)
-
setShadowValue
public void setShadowValue(int value)
-
setVarInit
public void setVarInit(double varInit)
-
setVarMax
public void setVarMax(double varMax)
-
setVarMin
public void setVarMin(double varMin)
-
setVarThreshold
public void setVarThreshold(double varThreshold)
-
setVarThresholdGen
public void setVarThresholdGen(double varThresholdGen)
-
finalize
protected void finalize() throws Throwable- Overrides:
finalizein classBackgroundSubtractor- Throws:
Throwable
-
-