Package boofcv.alg.background.stationary
Class BackgroundStationaryBasic_IL_MT<T extends ImageInterleaved<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_IL_MT<T>
- All Implemented Interfaces:
BackgroundAlgorithmBasic
@Generated("boofcv.alg.background.stationary.BackgroundStationaryBasic_IL")
public class BackgroundStationaryBasic_IL_MT<T extends ImageInterleaved<T>>
extends BackgroundStationaryBasic<T>
Implementation of
BackgroundStationaryBasic for ImageGray.-
Field Summary
FieldsFields inherited from class boofcv.alg.background.stationary.BackgroundStationaryBasic
learnRate, thresholdFields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundStationaryBasic_IL_MT(float learnRate, float threshold, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionReturns the background image.voidreset()Resets model to its original statevoidInvoke to segment input image into background and foreground pixels.voidupdateBackground(T frame) Updates the background with new image information.Methods inherited from class boofcv.alg.background.stationary.BackgroundStationaryBasic
getLearnRate, getThreshold, setLearnRate, setThresholdMethods inherited from class boofcv.alg.background.BackgroundModelStationary
updateBackgroundMethods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
Field Details
-
background
-
inputWrapper
-
-
Constructor Details
-
BackgroundStationaryBasic_IL_MT
-
-
Method Details
-
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 ImageInterleaved<T>>
-
updateBackground
Description copied from class:BackgroundModelStationaryUpdates the background with new image information.- Specified by:
updateBackgroundin classBackgroundModelStationary<T extends ImageInterleaved<T>>
-
segment
Description copied from class:BackgroundModelStationaryInvoke to segment input image into background and foreground pixels. If 'segmented' isn't the correct size it will be resized.- Specified by:
segmentin classBackgroundModelStationary<T extends ImageInterleaved<T>>- Parameters:
frame- (input) current imagesegmented- (output) Segmented image. 0 = background, 1 = foreground/moving
-