Package org.opencv.video
Class BackgroundSubtractorKNN
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.video.BackgroundSubtractor
-
- org.opencv.video.BackgroundSubtractorKNN
-
public class BackgroundSubtractorKNN extends BackgroundSubtractor
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBackgroundSubtractorKNN(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundSubtractorKNN__fromPtr__(long addr)protected voidfinalize()booleangetDetectShadows()doublegetDist2Threshold()intgetHistory()intgetkNNSamples()intgetNSamples()doublegetShadowThreshold()intgetShadowValue()voidsetDetectShadows(boolean detectShadows)voidsetDist2Threshold(double _dist2Threshold)voidsetHistory(int history)voidsetkNNSamples(int _nkNN)voidsetNSamples(int _nN)voidsetShadowThreshold(double threshold)voidsetShadowValue(int value)-
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 BackgroundSubtractorKNN __fromPtr__(long addr)
-
getDetectShadows
public boolean getDetectShadows()
-
getDist2Threshold
public double getDist2Threshold()
-
getShadowThreshold
public double getShadowThreshold()
-
getHistory
public int getHistory()
-
getNSamples
public int getNSamples()
-
getShadowValue
public int getShadowValue()
-
getkNNSamples
public int getkNNSamples()
-
setDetectShadows
public void setDetectShadows(boolean detectShadows)
-
setDist2Threshold
public void setDist2Threshold(double _dist2Threshold)
-
setHistory
public void setHistory(int history)
-
setNSamples
public void setNSamples(int _nN)
-
setShadowThreshold
public void setShadowThreshold(double threshold)
-
setShadowValue
public void setShadowValue(int value)
-
setkNNSamples
public void setkNNSamples(int _nkNN)
-
finalize
protected void finalize() throws Throwable- Overrides:
finalizein classBackgroundSubtractor- Throws:
Throwable
-
-