@Name(value="cv::cuda::BackgroundSubtractorMOG2") @Properties(inherit=opencv_cudabgsegm.class) public class BackgroundSubtractorMOG2 extends BackgroundSubtractorMOG2
The class discriminates between foreground and background pixels by building and maintaining a model of the background. Any pixel which does not fit this model is then deemed to be foreground. The class implements algorithm described in \cite Zivkovic2004 .
BackgroundSubtractorMOG2Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
BackgroundSubtractorMOG2(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(GpuMat image,
GpuMat fgmask,
double learningRate,
Stream stream) |
void |
apply(Mat image,
Mat fgmask,
double learningRate,
Stream stream) |
void |
apply(UMat image,
UMat fgmask,
double learningRate,
Stream stream) |
void |
getBackgroundImage(GpuMat backgroundImage,
Stream stream) |
void |
getBackgroundImage(Mat backgroundImage,
Stream stream) |
void |
getBackgroundImage(UMat backgroundImage,
Stream stream) |
apply, apply, apply, apply, apply, apply, getBackgroundRatio, getComplexityReductionThreshold, getDetectShadows, getHistory, getNMixtures, getShadowThreshold, getShadowValue, getVarInit, getVarMax, getVarMin, getVarThreshold, getVarThresholdGen, setBackgroundRatio, setComplexityReductionThreshold, setDetectShadows, setHistory, setNMixtures, setShadowThreshold, setShadowValue, setVarInit, setVarMax, setVarMin, setVarThreshold, setVarThresholdGengetBackgroundImage, getBackgroundImage, getBackgroundImageclear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic BackgroundSubtractorMOG2(Pointer p)
Pointer.Pointer(Pointer).public void apply(@ByVal Mat image, @ByVal Mat fgmask, double learningRate, @ByRef Stream stream)
public void apply(@ByVal UMat image, @ByVal UMat fgmask, double learningRate, @ByRef Stream stream)
public void apply(@ByVal GpuMat image, @ByVal GpuMat fgmask, double learningRate, @ByRef Stream stream)
public void getBackgroundImage(@ByVal UMat backgroundImage, @ByRef Stream stream)
Copyright © 2020. All rights reserved.