Package boofcv.alg.background.stationary
Class BackgroundStationaryBasic_SB<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
boofcv.alg.background.BackgroundModelStationary<T>
boofcv.alg.background.stationary.BackgroundStationaryBasic<T>
boofcv.alg.background.stationary.BackgroundStationaryBasic_SB<T>
- All Implemented Interfaces:
BackgroundAlgorithmBasic
public class BackgroundStationaryBasic_SB<T extends ImageGray<T>>
extends BackgroundStationaryBasic<T>
Implementation of
BackgroundStationaryBasic
for Planar
.-
Field Summary
Fields inherited from class boofcv.alg.background.stationary.BackgroundStationaryBasic
learnRate, threshold
Fields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue
-
Constructor Summary
ConstructorDescriptionBackgroundStationaryBasic_SB
(float learnRate, float threshold, Class<T> imageType) -
Method Summary
Methods inherited from class boofcv.alg.background.stationary.BackgroundStationaryBasic
getLearnRate, getThreshold, setLearnRate, setThreshold
Methods inherited from class boofcv.alg.background.BackgroundModelStationary
updateBackground
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
Field Details
-
background
Background model image -
inputWrapper
-
-
Constructor Details
-
BackgroundStationaryBasic_SB
-
-
Method Details
-
reset
public void reset()Description copied from class:BackgroundModel
Resets model to its original state- Specified by:
reset
in classBackgroundModel<T extends ImageGray<T>>
-
updateBackground
Description copied from class:BackgroundModelStationary
Updates the background with new image information.- Specified by:
updateBackground
in classBackgroundModelStationary<T extends ImageGray<T>>
-
segment
Description copied from class:BackgroundModelStationary
Invoke to segment input image into background and foreground pixels. If 'segmented' isn't the correct size it will be resized.- Specified by:
segment
in classBackgroundModelStationary<T extends ImageGray<T>>
- Parameters:
frame
- (input) current imagesegmented
- (output) Segmented image. 0 = background, 1 = foreground/moving
-