Package org.opencv.bgsegm
Class BackgroundSubtractorMOG
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.video.BackgroundSubtractor
-
- org.opencv.bgsegm.BackgroundSubtractorMOG
-
public class BackgroundSubtractorMOG extends BackgroundSubtractor
Gaussian Mixture-based Background/Foreground Segmentation Algorithm. The class implements the algorithm described in CITE: KB2001 .
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BackgroundSubtractorMOG(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundSubtractorMOG
__fromPtr__(long addr)
protected void
finalize()
double
getBackgroundRatio()
int
getHistory()
int
getNMixtures()
double
getNoiseSigma()
void
setBackgroundRatio(double backgroundRatio)
void
setHistory(int nframes)
void
setNMixtures(int nmix)
void
setNoiseSigma(double noiseSigma)
-
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 BackgroundSubtractorMOG __fromPtr__(long addr)
-
getHistory
public int getHistory()
-
setHistory
public void setHistory(int nframes)
-
getNMixtures
public int getNMixtures()
-
setNMixtures
public void setNMixtures(int nmix)
-
getBackgroundRatio
public double getBackgroundRatio()
-
setBackgroundRatio
public void setBackgroundRatio(double backgroundRatio)
-
getNoiseSigma
public double getNoiseSigma()
-
setNoiseSigma
public void setNoiseSigma(double noiseSigma)
-
finalize
protected void finalize() throws Throwable
- Overrides:
finalize
in classBackgroundSubtractor
- Throws:
Throwable
-
-