@Namespace(value="cv::bgsegm") public static class opencv_bgsegm.BackgroundSubtractorCNT extends opencv_video.BackgroundSubtractor
About as fast as MOG2 on a high end system. More than twice faster than MOG2 on cheap hardware (benchmarked on Raspberry Pi3).
%Algorithm by Sagi Zeevi ( https://github.com/sagi-z/BackgroundSubtractorCNT )
| Constructor and Description |
|---|
BackgroundSubtractorCNT(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(opencv_core.GpuMat image,
opencv_core.GpuMat fgmask) |
void |
apply(opencv_core.GpuMat image,
opencv_core.GpuMat fgmask,
double learningRate) |
void |
apply(opencv_core.Mat image,
opencv_core.Mat fgmask) |
void |
apply(opencv_core.Mat image,
opencv_core.Mat fgmask,
double learningRate)
\brief Computes a foreground mask.
|
void |
apply(opencv_core.UMat image,
opencv_core.UMat fgmask) |
void |
apply(opencv_core.UMat image,
opencv_core.UMat fgmask,
double learningRate) |
void |
getBackgroundImage(opencv_core.GpuMat backgroundImage) |
void |
getBackgroundImage(opencv_core.Mat backgroundImage)
\brief Computes a background image.
|
void |
getBackgroundImage(opencv_core.UMat backgroundImage) |
boolean |
getIsParallel()
\brief Returns if we're parallelizing the algorithm.
|
int |
getMaxPixelStability()
\brief Returns maximum allowed credit for a pixel in history.
|
int |
getMinPixelStability()
\brief Returns number of frames with same pixel color to consider stable.
|
boolean |
getUseHistory()
\brief Returns if we're giving a pixel credit for being stable for a long time.
|
void |
setIsParallel(boolean value)
\brief Sets if we're parallelizing the algorithm.
|
void |
setMaxPixelStability(int value)
\brief Sets the maximum allowed credit for a pixel in history.
|
void |
setMinPixelStability(int value)
\brief Sets the number of frames with same pixel color to consider stable.
|
void |
setUseHistory(boolean value)
\brief Sets if we're giving a pixel credit for being stable for a long time.
|
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, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic BackgroundSubtractorCNT(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public void apply(@ByVal
opencv_core.Mat image,
@ByVal
opencv_core.Mat fgmask,
double learningRate)
opencv_video.BackgroundSubtractorapply in class opencv_video.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
opencv_core.Mat image,
@ByVal
opencv_core.Mat fgmask)
apply in class opencv_video.BackgroundSubtractorpublic void apply(@ByVal
opencv_core.UMat image,
@ByVal
opencv_core.UMat fgmask,
double learningRate)
apply in class opencv_video.BackgroundSubtractorpublic void apply(@ByVal
opencv_core.UMat image,
@ByVal
opencv_core.UMat fgmask)
apply in class opencv_video.BackgroundSubtractorpublic void apply(@ByVal
opencv_core.GpuMat image,
@ByVal
opencv_core.GpuMat fgmask,
double learningRate)
apply in class opencv_video.BackgroundSubtractorpublic void apply(@ByVal
opencv_core.GpuMat image,
@ByVal
opencv_core.GpuMat fgmask)
apply in class opencv_video.BackgroundSubtractorpublic void getBackgroundImage(@ByVal
opencv_core.Mat backgroundImage)
opencv_video.BackgroundSubtractorgetBackgroundImage in class opencv_video.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
opencv_core.UMat backgroundImage)
getBackgroundImage in class opencv_video.BackgroundSubtractorpublic void getBackgroundImage(@ByVal
opencv_core.GpuMat backgroundImage)
getBackgroundImage in class opencv_video.BackgroundSubtractorpublic int getMinPixelStability()
public void setMinPixelStability(int value)
public int getMaxPixelStability()
public void setMaxPixelStability(int value)
@Cast(value="bool") public boolean getUseHistory()
public void setUseHistory(@Cast(value="bool")
boolean value)
@Cast(value="bool") public boolean getIsParallel()
public void setIsParallel(@Cast(value="bool")
boolean value)
Copyright © 2018. All rights reserved.