public abstract class BackgroundModelStationary<T extends boofcv.struct.image.ImageBase> extends BackgroundModel<T>
Base class for classifying pixels as background based on the apparent motion of pixels when the camera is static.
imageType, unknownValue| Constructor and Description |
|---|
BackgroundModelStationary(boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
segment(T frame,
boofcv.struct.image.GrayU8 segmented)
Invoke to use the background image to segment the current frame into background and foreground pixels
|
abstract void |
updateBackground(T frame)
Updates the background with new image information.
|
getImageType, getUnknownValue, reset, setUnknownValuepublic BackgroundModelStationary(boofcv.struct.image.ImageType<T> imageType)
public abstract void updateBackground(T frame)
public abstract void segment(T frame, boofcv.struct.image.GrayU8 segmented)
frame - current imagesegmented - Segmented image. 0 = background, 1 = foreground/moving