public static class opencv_video.BackgroundSubtractorMOG2 extends opencv_video.BackgroundSubtractor
opencv_core.Algorithm.Constructor, opencv_core.Algorithm.Getter, opencv_core.Algorithm.SetterPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_video.BackgroundSubtractorMOG2()
the default constructor
|
opencv_video.BackgroundSubtractorMOG2(int size) |
opencv_video.BackgroundSubtractorMOG2(int history,
float varThreshold) |
opencv_video.BackgroundSubtractorMOG2(int history,
float varThreshold,
boolean bShadowDetection)
the full constructor that takes the length of the history, the number of gaussian mixtures, the background ratio parameter and the noise strength
|
opencv_video.BackgroundSubtractorMOG2(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(opencv_core.Mat image,
opencv_core.Mat fgmask) |
void |
apply(opencv_core.Mat image,
opencv_core.Mat fgmask,
double learningRate)
the update operator
|
void |
getBackgroundImage(opencv_core.Mat backgroundImage)
computes a background image which are the mean of all background gaussians
|
opencv_core.AlgorithmInfo |
info() |
void |
initialize(opencv_core.Size frameSize,
int frameType)
re-initiaization method
|
opencv_video.BackgroundSubtractorMOG2 |
position(int position) |
_create, _create, getAlgorithm, getAlgorithm, getBool, getBool, getDouble, getDouble, getInt, getInt, getList, getMat, getMat, getMatVector, getMatVector, getParams, getString, getString, name, paramHelp, paramHelp, paramType, paramType, read, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setAlgorithm, setAlgorithm, setBool, setBool, setDouble, setDouble, setInt, setInt, setMat, setMat, setMatVector, setMatVector, setString, setString, writeaddress, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic opencv_video.BackgroundSubtractorMOG2(Pointer p)
public opencv_video.BackgroundSubtractorMOG2(int size)
public opencv_video.BackgroundSubtractorMOG2()
public opencv_video.BackgroundSubtractorMOG2(int history,
float varThreshold,
boolean bShadowDetection)
public opencv_video.BackgroundSubtractorMOG2(int history,
float varThreshold)
public opencv_video.BackgroundSubtractorMOG2 position(int position)
position in class opencv_video.BackgroundSubtractorpublic void apply(opencv_core.Mat image, opencv_core.Mat fgmask, double learningRate)
apply in class opencv_video.BackgroundSubtractorpublic void apply(opencv_core.Mat image, opencv_core.Mat fgmask)
apply in class opencv_video.BackgroundSubtractorpublic void getBackgroundImage(opencv_core.Mat backgroundImage)
getBackgroundImage in class opencv_video.BackgroundSubtractorpublic void initialize(opencv_core.Size frameSize, int frameType)
public opencv_core.AlgorithmInfo info()
info in class opencv_core.AlgorithmCopyright © 2014. All Rights Reserved.