public class BackgroundStationaryGaussian_SB<T extends boofcv.struct.image.ImageGray> extends BackgroundStationaryGaussian<T>
BackgroundMovingGaussian for ImageGray.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.core.image.GImageGray |
inputWrapper |
initialVariance, learnRate, minimumDifference, thresholdimageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryGaussian_SB(float learnRate,
float threshold,
java.lang.Class<T> imageType)
Configurations background removal.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getInitialVariance, getLearnRate, getMinimumDifference, getThreshold, setInitialVariance, setLearnRate, setMinimumDifference, setThresholdgetImageType, getUnknownValue, setUnknownValuepublic BackgroundStationaryGaussian_SB(float learnRate,
float threshold,
java.lang.Class<T> imageType)
learnRate - Specifies how quickly the background is updated. 0 = static 1.0 = instant. Try 0.05threshold - Threshold for background. Try 10.imageType - Type of input image.public void reset()
BackgroundModelreset in class BackgroundModel<T extends boofcv.struct.image.ImageGray>public void updateBackground(T frame)
BackgroundModelStationaryupdateBackground in class BackgroundModelStationary<T extends boofcv.struct.image.ImageGray>public void segment(T frame, boofcv.struct.image.GrayU8 segmented)
BackgroundModelStationarysegment in class BackgroundModelStationary<T extends boofcv.struct.image.ImageGray>frame - current imagesegmented - Segmented image. 0 = background, 1 = foreground/moving