public class BackgroundSubtractorMOG2 extends BackgroundSubtractor
Modifier | Constructor and Description |
---|---|
protected |
BackgroundSubtractorMOG2(long addr) |
Modifier and Type | Method and Description |
---|---|
static BackgroundSubtractorMOG2 |
__fromPtr__(long addr) |
void |
apply(Mat image,
Mat fgmask) |
void |
apply(Mat image,
Mat fgmask,
double learningRate) |
protected void |
finalize() |
double |
getBackgroundRatio() |
double |
getComplexityReductionThreshold() |
boolean |
getDetectShadows() |
int |
getHistory() |
int |
getNMixtures() |
double |
getShadowThreshold() |
int |
getShadowValue() |
double |
getVarInit() |
double |
getVarMax() |
double |
getVarMin() |
double |
getVarThreshold() |
double |
getVarThresholdGen() |
void |
setBackgroundRatio(double ratio) |
void |
setComplexityReductionThreshold(double ct) |
void |
setDetectShadows(boolean detectShadows) |
void |
setHistory(int history) |
void |
setNMixtures(int nmixtures) |
void |
setShadowThreshold(double threshold) |
void |
setShadowValue(int value) |
void |
setVarInit(double varInit) |
void |
setVarMax(double varMax) |
void |
setVarMin(double varMin) |
void |
setVarThreshold(double varThreshold) |
void |
setVarThresholdGen(double varThresholdGen) |
getBackgroundImage
clear, empty, getDefaultName, getNativeObjAddr, save
public static BackgroundSubtractorMOG2 __fromPtr__(long addr)
public boolean getDetectShadows()
public double getBackgroundRatio()
public double getComplexityReductionThreshold()
public double getShadowThreshold()
public double getVarInit()
public double getVarMax()
public double getVarMin()
public double getVarThreshold()
public double getVarThresholdGen()
public int getHistory()
public int getNMixtures()
public int getShadowValue()
public void apply(Mat image, Mat fgmask, double learningRate)
apply
in class BackgroundSubtractor
public void apply(Mat image, Mat fgmask)
apply
in class BackgroundSubtractor
public void setBackgroundRatio(double ratio)
public void setComplexityReductionThreshold(double ct)
public void setDetectShadows(boolean detectShadows)
public void setHistory(int history)
public void setNMixtures(int nmixtures)
public void setShadowThreshold(double threshold)
public void setShadowValue(int value)
public void setVarInit(double varInit)
public void setVarMax(double varMax)
public void setVarMin(double varMin)
public void setVarThreshold(double varThreshold)
public void setVarThresholdGen(double varThresholdGen)
protected void finalize() throws java.lang.Throwable
finalize
in class BackgroundSubtractor
java.lang.Throwable
Generated on Sun Apr 7 2019 01:18:56 UTC / OpenCV 3.4.6