@Namespace(value="cv::cuda") @Properties(inherit=opencv_cudabgsegm.class) public class BackgroundSubtractorMOG extends BackgroundSubtractor
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 MOG2001 .
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BackgroundSubtractorMOG(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) |
double |
getBackgroundRatio() |
int |
getHistory() |
int |
getNMixtures() |
double |
getNoiseSigma() |
void |
setBackgroundRatio(double backgroundRatio) |
void |
setHistory(int nframes) |
void |
setNMixtures(int nmix) |
void |
setNoiseSigma(double noiseSigma) |
apply, apply, apply, apply, apply, apply, getBackgroundImage, getBackgroundImage, getBackgroundImage
clear, empty, getDefaultName, position, read, save, save, write, write, write
address, 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, zero
public BackgroundSubtractorMOG(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)
public void getBackgroundImage(@ByRef GpuMat backgroundImage, @ByRef Stream stream)
public int getHistory()
public void setHistory(int nframes)
public int getNMixtures()
public void setNMixtures(int nmix)
public double getBackgroundRatio()
public void setBackgroundRatio(double backgroundRatio)
public double getNoiseSigma()
public void setNoiseSigma(double noiseSigma)
Copyright © 2020. All rights reserved.