public class BackgroundStationaryGaussian_PL<T extends boofcv.struct.image.ImageGray> extends BackgroundStationaryGaussian<boofcv.struct.image.Planar<T>>
BackgroundStationaryGaussian for Planar.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.core.image.GImageMultiBand |
bgWrapper |
protected float[] |
inputPixel |
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
initialVariance, learnRate, minimumDifference, thresholdimageType, unknownValue| Constructor and Description |
|---|
BackgroundStationaryGaussian_PL(float learnRate,
float threshold,
boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> imageType)
Configurations background removal.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Resets model to its original state
|
void |
segment(boofcv.struct.image.Planar<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(boofcv.struct.image.Planar<T> frame)
Updates the background with new image information.
|
getInitialVariance, getLearnRate, getMinimumDifference, getThreshold, setInitialVariance, setLearnRate, setMinimumDifference, setThresholdgetImageType, getUnknownValue, setUnknownValueprotected boofcv.core.image.GImageMultiBand inputWrapper
protected boofcv.core.image.GImageMultiBand bgWrapper
protected float[] inputPixel
public BackgroundStationaryGaussian_PL(float learnRate,
float threshold,
boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> imageType)
learnRate - Specifies how quickly the background is updated. 0 = static 1.0 = instant. Try 0.05threshold - Threshold for background. Consult a chi-square table for reasonably values.
10 to 16 for 1 to 3 bands.imageType - Type of input image.public void reset()
BackgroundModelreset in class BackgroundModel<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>>public void updateBackground(boofcv.struct.image.Planar<T> frame)
BackgroundModelStationaryupdateBackground in class BackgroundModelStationary<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>>public void segment(boofcv.struct.image.Planar<T> frame, boofcv.struct.image.GrayU8 segmented)
BackgroundModelStationarysegment in class BackgroundModelStationary<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>>frame - current imagesegmented - Segmented image. 0 = background, 1 = foreground/moving