Class BackgroundSubtractorMOG
java.lang.Object
org.opencv.core.Algorithm
org.opencv.video.BackgroundSubtractor
org.opencv.bgsegm.BackgroundSubtractorMOG
Gaussian Mixture-based Background/Foreground Segmentation Algorithm.
The class implements the algorithm described in CITE: KB2001 .
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BackgroundSubtractorMOG__fromPtr__(long addr) protected voidfinalize()doubleintintdoublevoidsetBackgroundRatio(double backgroundRatio) voidsetHistory(int nframes) voidsetNMixtures(int nmix) voidsetNoiseSigma(double noiseSigma) Methods inherited from class BackgroundSubtractor
apply, apply, getBackgroundImageMethods inherited from class Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
BackgroundSubtractorMOG
protected BackgroundSubtractorMOG(long addr)
-
-
Method Details
-
__fromPtr__
-
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
- Overrides:
finalizein classBackgroundSubtractor- Throws:
Throwable
-