@Namespace(value="cv::bgsegm") @Properties(inherit=opencv_bgsegm.class) public class BackgroundSubtractorGMG extends BackgroundSubtractor
Takes a series of images and returns a sequence of mask (8UC1) images of the same size, where 255 indicates Foreground and 0 represents Background. This class implements an algorithm described in "Visual Tracking of Human Visitors under Variable-Lighting Conditions for a Responsive Audio Art Installation," A. Godbehere, A. Matsukawa, K. Goldberg, American Control Conference, Montreal, June 2012.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BackgroundSubtractorGMG(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getBackgroundPrior()
\brief Returns the prior probability that each individual pixel is a background pixel.
|
double |
getDecisionThreshold()
\brief Returns the value of decision threshold.
|
double |
getDefaultLearningRate()
\brief Returns the learning rate of the algorithm.
|
int |
getMaxFeatures()
\brief Returns total number of distinct colors to maintain in histogram.
|
double |
getMaxVal()
\brief Returns the maximum value taken on by pixels in image sequence.
|
double |
getMinVal()
\brief Returns the minimum value taken on by pixels in image sequence.
|
int |
getNumFrames()
\brief Returns the number of frames used to initialize background model.
|
int |
getQuantizationLevels()
\brief Returns the parameter used for quantization of color-space.
|
int |
getSmoothingRadius()
\brief Returns the kernel radius used for morphological operations
|
boolean |
getUpdateBackgroundModel()
\brief Returns the status of background model update
|
void |
setBackgroundPrior(double bgprior)
\brief Sets the prior probability that each individual pixel is a background pixel.
|
void |
setDecisionThreshold(double thresh)
\brief Sets the value of decision threshold.
|
void |
setDefaultLearningRate(double lr)
\brief Sets the learning rate of the algorithm.
|
void |
setMaxFeatures(int maxFeatures)
\brief Sets total number of distinct colors to maintain in histogram.
|
void |
setMaxVal(double val)
\brief Sets the maximum value taken on by pixels in image sequence.
|
void |
setMinVal(double val)
\brief Sets the minimum value taken on by pixels in image sequence.
|
void |
setNumFrames(int nframes)
\brief Sets the number of frames used to initialize background model.
|
void |
setQuantizationLevels(int nlevels)
\brief Sets the parameter used for quantization of color-space
|
void |
setSmoothingRadius(int radius)
\brief Sets the kernel radius used for morphological operations
|
void |
setUpdateBackgroundModel(boolean update)
\brief Sets the status of background model update
|
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 BackgroundSubtractorGMG(Pointer p)
Pointer.Pointer(Pointer)
.public int getMaxFeatures()
public void setMaxFeatures(int maxFeatures)
public double getDefaultLearningRate()
It lies between 0.0 and 1.0. It determines how quickly features are "forgotten" from histograms.
public void setDefaultLearningRate(double lr)
public int getNumFrames()
public void setNumFrames(int nframes)
public int getQuantizationLevels()
It is the number of discrete levels in each channel to be used in histograms.
public void setQuantizationLevels(int nlevels)
public double getBackgroundPrior()
public void setBackgroundPrior(double bgprior)
public int getSmoothingRadius()
public void setSmoothingRadius(int radius)
public double getDecisionThreshold()
Decision value is the value above which pixel is determined to be FG.
public void setDecisionThreshold(double thresh)
@Cast(value="bool") public boolean getUpdateBackgroundModel()
public void setUpdateBackgroundModel(@Cast(value="bool") boolean update)
public double getMinVal()
public void setMinVal(double val)
public double getMaxVal()
public void setMaxVal(double val)
Copyright © 2020. All rights reserved.