public class BackgroundStationaryBasic_MS<T extends boofcv.struct.image.ImageSingleBand> extends BackgroundStationaryBasic<boofcv.struct.image.MultiSpectral<T>>
BackgroundStationaryBasic for ImageSingleBand.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> |
background |
protected float[] |
inputPixels |
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
learnRate, thresholdimageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryBasic_MS(float learnRate,
float threshold,
boofcv.struct.image.ImageType<boofcv.struct.image.MultiSpectral<T>> imageType) |
| Modifier and Type | Method and Description |
|---|---|
boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> |
getBackground()
Returns the background image.
|
void |
reset()
Resets model to its original state
|
void |
segment(boofcv.struct.image.MultiSpectral<T> frame,
boofcv.struct.image.ImageUInt8 segmented)
Invoke to use the background image to segment the current frame into background and foreground pixels
|
void |
updateBackground(boofcv.struct.image.MultiSpectral<T> frame)
Updates the background with new image information.
|
getLearnRate, getThreshold, setLearnRate, setThresholdgetImageType, getUnknownValue, setUnknownValueprotected boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> background
protected boofcv.core.image.GImageMultiBand inputWrapper
protected float[] inputPixels
public BackgroundStationaryBasic_MS(float learnRate,
float threshold,
boofcv.struct.image.ImageType<boofcv.struct.image.MultiSpectral<T>> imageType)
public boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageFloat32> getBackground()
public void reset()
BackgroundModelreset in class BackgroundModel<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>>public void updateBackground(boofcv.struct.image.MultiSpectral<T> frame)
BackgroundModelStationaryupdateBackground in class BackgroundModelStationary<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>>public void segment(boofcv.struct.image.MultiSpectral<T> frame, boofcv.struct.image.ImageUInt8 segmented)
BackgroundModelStationarysegment in class BackgroundModelStationary<boofcv.struct.image.MultiSpectral<T extends boofcv.struct.image.ImageSingleBand>>frame - current imagesegmented - Segmented image. 0 = background, 1 = foreground/moving