Package org.opencv.bgsegm
Class BackgroundSubtractorLSBP
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.video.BackgroundSubtractor
- 
- org.opencv.bgsegm.BackgroundSubtractorLSBP
 
 
 
- 
 public class BackgroundSubtractorLSBP extends BackgroundSubtractor Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBackgroundSubtractorLSBP(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackgroundSubtractorLSBP__fromPtr__(long addr)voidapply(Mat image, Mat fgmask)Computes a foreground mask.voidapply(Mat image, Mat fgmask, double learningRate)Computes a foreground mask.protected voidfinalize()voidgetBackgroundImage(Mat backgroundImage)Computes a background image.- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static BackgroundSubtractorLSBP __fromPtr__(long addr) 
 - 
applypublic void apply(Mat image, Mat fgmask, double learningRate) Description copied from class:BackgroundSubtractorComputes a foreground mask.- Overrides:
- applyin class- BackgroundSubtractor
- Parameters:
- image- 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.
 
 - 
applypublic void apply(Mat image, Mat fgmask) Description copied from class:BackgroundSubtractorComputes a foreground mask.- Overrides:
- applyin class- BackgroundSubtractor
- Parameters:
- image- Next video frame.
- fgmask- 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.
 
 - 
getBackgroundImagepublic void getBackgroundImage(Mat backgroundImage) Description copied from class:BackgroundSubtractorComputes a background image.- Overrides:
- getBackgroundImagein class- BackgroundSubtractor
- Parameters:
- backgroundImage- The output background image. Note: Sometimes the background image can be very blurry, as it contain the average background statistics.
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- BackgroundSubtractor
- Throws:
- java.lang.Throwable
 
 
- 
 
-