Package boofcv.alg.background
Class BackgroundModelStationary<T extends ImageBase<T>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
boofcv.alg.background.BackgroundModelStationary<T>
- Direct Known Subclasses:
BackgroundStationaryBasic
,BackgroundStationaryGaussian
,BackgroundStationaryGmm
Base class for classifying pixels as background based on the apparent motion of pixels when the camera is static.
-
Field Summary
Fields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Invoke to segment input image into background and foreground pixels.abstract void
updateBackground
(T frame) Updates the background with new image information.void
updateBackground
(T frame, GrayU8 segment) Updates the background and segments it at the same time.Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, reset, setUnknownValue
-
Constructor Details
-
BackgroundModelStationary
-
-
Method Details
-
updateBackground
Updates the background with new image information. -
updateBackground
Updates the background and segments it at the same time. In some implementations this can be significantly faster than doing it with separate function calls. Segmentation is performed using the model which it has prior to the update. -
segment
Invoke to segment input image into background and foreground pixels. If 'segmented' isn't the correct size it will be resized.- Parameters:
frame
- (input) current imagesegmented
- (output) Segmented image. 0 = background, 1 = foreground/moving
-