Package boofcv.alg.background.stationary
Class BackgroundStationaryBasic_PL_MT<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
boofcv.alg.background.BackgroundModelStationary<T>
boofcv.alg.background.stationary.BackgroundStationaryBasic<Planar<T>>
boofcv.alg.background.stationary.BackgroundStationaryBasic_PL_MT<T>
- All Implemented Interfaces:
BackgroundAlgorithmBasic
@Generated("boofcv.alg.background.stationary.BackgroundStationaryBasic_PL") public class BackgroundStationaryBasic_PL_MT<T extends ImageGray<T>> extends BackgroundStationaryBasic<Planar<T>>
Implementation of
BackgroundStationaryBasic
for ImageGray
.-
Field Summary
Fields Modifier and Type Field Description protected Planar<GrayF32>
background
protected GImageMultiBand
inputWrapper
Fields inherited from class boofcv.alg.background.stationary.BackgroundStationaryBasic
learnRate, threshold
Fields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue
-
Constructor Summary
Constructors Constructor Description BackgroundStationaryBasic_PL_MT(float learnRate, float threshold, ImageType<Planar<T>> imageType)
-
Method Summary
Modifier and Type Method Description Planar<GrayF32>
getBackground()
Returns the background image.void
reset()
Resets model to its original statevoid
segment(Planar<T> frame, GrayU8 segmented)
Invoke to segment input image into background and foreground pixels.void
updateBackground(Planar<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.BackgroundModelStationary
updateBackground
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
Field Details
-
background
-
inputWrapper
-
-
Constructor Details
-
BackgroundStationaryBasic_PL_MT
-
-
Method Details
-
getBackground
Returns the background image.- Returns:
- background image.
-
reset
public void reset()Description copied from class:BackgroundModel
Resets model to its original state -
updateBackground
Description copied from class:BackgroundModelStationary
Updates the background with new image information.- Specified by:
updateBackground
in classBackgroundModelStationary<Planar<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.
-