public class BackgroundMovingGaussian_SB<T extends boofcv.struct.image.ImageGray,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundMovingGaussian<T,Motion>
BackgroundMovingGaussian for ImageGray.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.core.image.GImageGray |
inputWrapper |
protected boofcv.alg.interpolate.InterpolatePixelS<T> |
interpolateInput |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<boofcv.struct.image.GrayF32>> |
interpolationBG |
protected float[] |
pixelBG |
initialVariance, learnRate, minimumDifference, thresholdbackgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingGaussian_SB(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
boofcv.alg.interpolate.TypeInterpolate interpType,
java.lang.Class<T> imageType)
Configurations background removal.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_segment(Motion currentToWorld,
T frame,
boofcv.struct.image.GrayU8 segmented) |
void |
initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
Initializes background model.
|
void |
reset()
Resets model to its original state
|
protected void |
updateBackground(int x0,
int y0,
int x1,
int y1,
T frame)
Call to update the background with the frame inside the bounding box.
|
getInitialVariance, getLearnRate, getMinimumDifference, getThreshold, setInitialVariance, setLearnRate, setMinimumDifference, setThresholdsegment, updateBackgroundgetImageType, getUnknownValue, setUnknownValueprotected boofcv.alg.interpolate.InterpolatePixelS<T extends boofcv.struct.image.ImageGray> interpolateInput
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<boofcv.struct.image.GrayF32>> interpolationBG
protected boofcv.core.image.GImageGray inputWrapper
protected float[] pixelBG
public BackgroundMovingGaussian_SB(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
boofcv.alg.interpolate.TypeInterpolate interpType,
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.transform - Used to apply motion modelinterpType - Type of interpolation. BILINEAR recommended for accuracy. NEAREST_NEIGHBOR for speed. .imageType - Type of input image.public void initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
BackgroundModelMovinginitialize in class BackgroundModelMoving<T extends boofcv.struct.image.ImageGray,Motion extends georegression.struct.InvertibleTransform<Motion>>backgroundWidth - Width of backgroundbackgroundHeight - Height of backgroundhomeToWorld - Transform from home to world.public void reset()
BackgroundModelreset in class BackgroundModel<T extends boofcv.struct.image.ImageGray>protected void updateBackground(int x0,
int y0,
int x1,
int y1,
T frame)
BackgroundModelMovingupdateBackground in class BackgroundModelMoving<T extends boofcv.struct.image.ImageGray,Motion extends georegression.struct.InvertibleTransform<Motion>>