@Namespace(value="cv::bgsegm") @Properties(inherit=opencv_bgsegm.class) public class BackgroundSubtractorGSOC extends BackgroundSubtractor
This algorithm demonstrates better performance on CDNET 2014 dataset compared to other algorithms in OpenCV.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
BackgroundSubtractorGSOC(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(GpuMat image,
GpuMat fgmask) |
void |
apply(GpuMat image,
GpuMat fgmask,
double learningRate) |
void |
apply(Mat image,
Mat fgmask) |
void |
apply(Mat image,
Mat fgmask,
double learningRate)
\brief Computes a foreground mask.
|
void |
apply(UMat image,
UMat fgmask) |
void |
apply(UMat image,
UMat fgmask,
double learningRate) |
void |
getBackgroundImage(GpuMat backgroundImage) |
void |
getBackgroundImage(Mat backgroundImage)
\brief Computes a background image.
|
void |
getBackgroundImage(UMat backgroundImage) |
clear, 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 BackgroundSubtractorGSOC(Pointer p)
Pointer.Pointer(Pointer).public void apply(@ByVal Mat image, @ByVal Mat fgmask, double learningRate)
BackgroundSubtractorapply in class BackgroundSubtractorimage - Next video frame.fgmask - The output foreground mask as an 8-bit binary image.learningRate - The value between 0 and 1 that indicates how fast the background model is
learnt. Negative parameter value makes the algorithm to use some automatically chosen learning
rate. 0 means that the background model is not updated at all, 1 means that the background model
is completely reinitialized from the last frame.public void apply(@ByVal Mat image, @ByVal Mat fgmask)
apply in class BackgroundSubtractorpublic void apply(@ByVal UMat image, @ByVal UMat fgmask, double learningRate)
apply in class BackgroundSubtractorpublic void apply(@ByVal UMat image, @ByVal UMat fgmask)
apply in class BackgroundSubtractorpublic void apply(@ByVal GpuMat image, @ByVal GpuMat fgmask, double learningRate)
apply in class BackgroundSubtractorpublic void apply(@ByVal GpuMat image, @ByVal GpuMat fgmask)
apply in class BackgroundSubtractorpublic void getBackgroundImage(@ByVal Mat backgroundImage)
BackgroundSubtractorgetBackgroundImage in class BackgroundSubtractorbackgroundImage - The output background image.
\note Sometimes the background image can be very blurry, as it contain the average background statistics.
public void getBackgroundImage(@ByVal UMat backgroundImage)
getBackgroundImage in class BackgroundSubtractorpublic void getBackgroundImage(@ByVal GpuMat backgroundImage)
getBackgroundImage in class BackgroundSubtractorCopyright © 2020. All rights reserved.