- Direct Known Subclasses:
public abstract class BackgroundModelStationary<T extends ImageBase<T>> extends BackgroundModel<T>
Base class for classifying pixels as background based on the apparent motion of pixels when the camera is static.
Modifier and Type Method Description
T frame, GrayU8 segmented)(Invoke to segment input image into background and foreground pixels.
T frame)(Updates the background with new image information.
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
updateBackgroundpublic abstract void updateBackground(T frame)Updates the background with new image information.
updateBackgroundUpdates 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.
segmentInvoke to segment input image into background and foreground pixels. If 'segmented' isn't the correct size it will be resized.
frame- (input) current image
segmented- (output) Segmented image. 0 = background, 1 = foreground/moving