public abstract class BackgroundModelStationary<T extends boofcv.struct.image.ImageBase<T>> 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 segment input image into background and foreground pixels.
|
abstract void |
updateBackground(T frame)
Updates the background with new image information.
|
void |
updateBackground(T frame,
boofcv.struct.image.GrayU8 segment)
Updates the background and segments it at the same time.
|
getImageType, getUnknownValue, reset, setUnknownValuepublic BackgroundModelStationary(boofcv.struct.image.ImageType<T> imageType)
public abstract void updateBackground(T frame)
public void updateBackground(T frame, boofcv.struct.image.GrayU8 segment)
public abstract void segment(T frame, boofcv.struct.image.GrayU8 segmented)
frame - (input) current imagesegmented - (output) Segmented image. 0 = background, 1 = foreground/moving