public class BackgroundStationaryBasic_IL<T extends boofcv.struct.image.ImageInterleaved> extends BackgroundStationaryBasic<T>
BackgroundStationaryBasic for ImageGray.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.image.InterleavedF32 |
background |
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
learnRate, thresholdimageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryBasic_IL(float learnRate,
float threshold,
boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
boofcv.struct.image.InterleavedF32 |
getBackground()
Returns the background image.
|
void |
reset()
Resets model to its original state
|
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
|
void |
updateBackground(T frame)
Updates the background with new image information.
|
getLearnRate, getThreshold, setLearnRate, setThresholdgetImageType, getUnknownValue, setUnknownValueprotected boofcv.struct.image.InterleavedF32 background
protected boofcv.core.image.GImageMultiBand inputWrapper
public BackgroundStationaryBasic_IL(float learnRate,
float threshold,
boofcv.struct.image.ImageType<T> imageType)
public boofcv.struct.image.InterleavedF32 getBackground()
public void reset()
BackgroundModelreset in class BackgroundModel<T extends boofcv.struct.image.ImageInterleaved>public void updateBackground(T frame)
BackgroundModelStationaryupdateBackground in class BackgroundModelStationary<T extends boofcv.struct.image.ImageInterleaved>public void segment(T frame, boofcv.struct.image.GrayU8 segmented)
BackgroundModelStationarysegment in class BackgroundModelStationary<T extends boofcv.struct.image.ImageInterleaved>frame - current imagesegmented - Segmented image. 0 = background, 1 = foreground/moving