public class BackgroundSubtractorGSOC
extends BackgroundSubtractor
Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
This algorithm demonstrates better performance on CDNET 2014 dataset compared to other algorithms in OpenCV.
Field Summary
Fields inherited from class org.opencv.core.Algorithm
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.
- The output foreground mask as an 8-bit binary image.
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.
apply
public void apply(Mat image,
Mat knownForegroundMask,
Mat fgmask,
double learningRate)
knownForegroundMask - The mask for inputting already known foreground, allows model to ignore pixels.
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.
Note: This method has a default virtual implementation that throws a "not impemented" error.
Foreground masking may not be supported by all background subtractors.
knownForegroundMask - The mask for inputting already known foreground, allows model to ignore pixels.
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.
Note: This method has a default virtual implementation that throws a "not impemented" error.
Foreground masking may not be supported by all background subtractors.
fgmask - The output foreground mask as an 8-bit binary image.