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 protectedBackgroundSubtractorMOG(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundSubtractorMOG__fromPtr__(long addr)protected voidfinalize()doublegetBackgroundRatio()intgetHistory()intgetNMixtures()doublegetNoiseSigma()voidsetBackgroundRatio(double backgroundRatio)voidsetHistory(int nframes)voidsetNMixtures(int nmix)voidsetNoiseSigma(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 java.lang.Throwable- Overrides:
finalizein classBackgroundSubtractor- Throws:
java.lang.Throwable
-
-