public static class opencv_video.BackgroundSubtractorGMG extends opencv_video.BackgroundSubtractor
opencv_core.Algorithm.Constructor, opencv_core.Algorithm.Getter, opencv_core.Algorithm.SetterPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_video.BackgroundSubtractorGMG() |
opencv_video.BackgroundSubtractorGMG(int size) |
opencv_video.BackgroundSubtractorGMG(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(opencv_core.Mat image,
opencv_core.Mat fgmask) |
void |
apply(opencv_core.Mat image,
opencv_core.Mat fgmask,
double learningRate)
Performs single-frame background subtraction and builds up a statistical background image
model.
|
double |
backgroundPrior()
Prior probability that any given pixel is a background pixel.
|
opencv_video.BackgroundSubtractorGMG |
backgroundPrior(double backgroundPrior) |
double |
decisionThreshold()
Value above which pixel is determined to be FG.
|
opencv_video.BackgroundSubtractorGMG |
decisionThreshold(double decisionThreshold) |
opencv_core.AlgorithmInfo |
info() |
void |
initialize(opencv_core.Size frameSize,
double min,
double max)
Validate parameters and set up data structures for appropriate image size.
|
double |
learningRate()
Set between 0.0 and 1.0, determines how quickly features are "forgotten" from histograms.
|
opencv_video.BackgroundSubtractorGMG |
learningRate(double learningRate) |
int |
maxFeatures()
Total number of distinct colors to maintain in histogram.
|
opencv_video.BackgroundSubtractorGMG |
maxFeatures(int maxFeatures) |
int |
numInitializationFrames()
Number of frames of video to use to initialize histograms.
|
opencv_video.BackgroundSubtractorGMG |
numInitializationFrames(int numInitializationFrames) |
opencv_video.BackgroundSubtractorGMG |
position(int position) |
int |
quantizationLevels()
Number of discrete levels in each channel to be used in histograms.
|
opencv_video.BackgroundSubtractorGMG |
quantizationLevels(int quantizationLevels) |
void |
release()
Releases all inner buffers.
|
int |
smoothingRadius()
Smoothing radius, in pixels, for cleaning up FG image.
|
opencv_video.BackgroundSubtractorGMG |
smoothingRadius(int smoothingRadius) |
boolean |
updateBackgroundModel()
Perform background model update
|
opencv_video.BackgroundSubtractorGMG |
updateBackgroundModel(boolean updateBackgroundModel) |
getBackgroundImage_create, _create, getAlgorithm, getAlgorithm, getBool, getBool, getDouble, getDouble, getInt, getInt, getList, getMat, getMat, getMatVector, getMatVector, getParams, getString, getString, name, paramHelp, paramHelp, paramType, paramType, read, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setAlgorithm, setAlgorithm, setBool, setBool, setDouble, setDouble, setInt, setInt, setMat, setMat, setMatVector, setMatVector, setString, setString, writeaddress, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic opencv_video.BackgroundSubtractorGMG(Pointer p)
public opencv_video.BackgroundSubtractorGMG(int size)
public opencv_video.BackgroundSubtractorGMG()
public opencv_video.BackgroundSubtractorGMG position(int position)
position in class opencv_video.BackgroundSubtractorpublic opencv_core.AlgorithmInfo info()
info in class opencv_core.Algorithmpublic void initialize(opencv_core.Size frameSize, double min, double max)
frameSize - input frame sizemin - minimum value taken on by pixels in image sequence. Usually 0max - maximum value taken on by pixels in image sequence. e.g. 1.0 or 255public void apply(opencv_core.Mat image, opencv_core.Mat fgmask, double learningRate)
apply in class opencv_video.BackgroundSubtractorimage - Input imagefgmask - Output mask image representing foreground and background pixelspublic void apply(opencv_core.Mat image, opencv_core.Mat fgmask)
apply in class opencv_video.BackgroundSubtractorpublic void release()
public int maxFeatures()
public opencv_video.BackgroundSubtractorGMG maxFeatures(int maxFeatures)
public double learningRate()
public opencv_video.BackgroundSubtractorGMG learningRate(double learningRate)
public int numInitializationFrames()
public opencv_video.BackgroundSubtractorGMG numInitializationFrames(int numInitializationFrames)
public int quantizationLevels()
public opencv_video.BackgroundSubtractorGMG quantizationLevels(int quantizationLevels)
public double backgroundPrior()
public opencv_video.BackgroundSubtractorGMG backgroundPrior(double backgroundPrior)
public double decisionThreshold()
public opencv_video.BackgroundSubtractorGMG decisionThreshold(double decisionThreshold)
public int smoothingRadius()
public opencv_video.BackgroundSubtractorGMG smoothingRadius(int smoothingRadius)
public boolean updateBackgroundModel()
public opencv_video.BackgroundSubtractorGMG updateBackgroundModel(boolean updateBackgroundModel)
Copyright © 2014. All Rights Reserved.