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 protected
BackgroundSubtractorKNN(long addr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
boolean
getDetectShadows()
double
getDist2Threshold()
int
getHistory()
int
getkNNSamples()
int
getNSamples()
double
getShadowThreshold()
int
getShadowValue()
void
setDetectShadows(boolean detectShadows)
void
setDist2Threshold(double _dist2Threshold)
void
setHistory(int history)
void
setkNNSamples(int _nkNN)
void
setNSamples(int _nN)
void
setShadowThreshold(double threshold)
void
setShadowValue(int value)
-
Methods inherited from class org.opencv.video.BackgroundSubtractor
apply, apply, getBackgroundImage
-
Methods inherited from class org.opencv.core.Algorithm
clear, getDefaultName, save
-
-
-
-
Method Detail
-
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:
finalize
in classBackgroundSubtractor
- Throws:
Throwable
-
-