boofcv.alg.background.stationary
Class BackgroundStationaryBasic_SB<T extends ImageGray>
- 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> extends BackgroundStationaryBasic<T>
Implementation ofBackgroundStationaryBasicforPlanar.
-
-
Constructor Summary
Constructors Constructor and Description BackgroundStationaryBasic_SB(float learnRate, float threshold, java.lang.Class<T> imageType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GrayF32getBackground()Returns the background image.voidreset()Resets model to its original statevoidsegment(T frame, GrayU8 segmented)Invoke to use the background image to segment the current frame into background and foreground pixelsvoidupdateBackground(T frame)Updates the background with new image information.-
Methods inherited from class boofcv.alg.background.stationary.BackgroundStationaryBasic
getLearnRate, getThreshold, setLearnRate, setThreshold
-
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
-
-
-
Constructor Detail
-
BackgroundStationaryBasic_SB
public BackgroundStationaryBasic_SB(float learnRate, float threshold, java.lang.Class<T> imageType)
-
-
Method Detail
-
getBackground
public GrayF32 getBackground()
Returns the background image.- Returns:
- background image.
-
reset
public void reset()
Description copied from class:BackgroundModelResets model to its original state- Specified by:
resetin classBackgroundModel<T extends ImageGray>
-
updateBackground
public void updateBackground(T frame)
Description copied from class:BackgroundModelStationaryUpdates the background with new image information.- Specified by:
updateBackgroundin classBackgroundModelStationary<T extends ImageGray>
-
segment
public void segment(T frame, GrayU8 segmented)
Description copied from class:BackgroundModelStationaryInvoke to use the background image to segment the current frame into background and foreground pixels- Specified by:
segmentin classBackgroundModelStationary<T extends ImageGray>- Parameters:
frame- current imagesegmented- Segmented image. 0 = background, 1 = foreground/moving
-
-
DataMelt 3.0 © DataMelt by jWork.ORG