public class BackgroundMovingGaussian_PL<T extends boofcv.struct.image.ImageGray,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundMovingGaussian<boofcv.struct.image.Planar<T>,Motion>
BackgroundMovingGaussian for Planar.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<T>> |
interpolateInput |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<boofcv.struct.image.GrayF32>> |
interpolationBG |
protected float[] |
pixelBG |
protected float[] |
pixelInput |
initialVariance, learnRate, minimumDifference, thresholdbackgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingGaussian_PL(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
boofcv.alg.interpolate.TypeInterpolate interpType,
boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> imageType)
Configurations background removal.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_segment(Motion currentToWorld,
boofcv.struct.image.Planar<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,
boofcv.struct.image.Planar<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.InterpolatePixelMB<boofcv.struct.image.Planar<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.GImageMultiBand inputWrapper
protected float[] pixelBG
protected float[] pixelInput
public BackgroundMovingGaussian_PL(float learnRate,
float threshold,
boofcv.struct.distort.PointTransformModel_F32<Motion> transform,
boofcv.alg.interpolate.TypeInterpolate interpType,
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.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<boofcv.struct.image.Planar<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<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>>protected void updateBackground(int x0,
int y0,
int x1,
int y1,
boofcv.struct.image.Planar<T> frame)
BackgroundModelMovingupdateBackground in class BackgroundModelMoving<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Motion extends georegression.struct.InvertibleTransform<Motion>>protected void _segment(Motion currentToWorld, boofcv.struct.image.Planar<T> frame, boofcv.struct.image.GrayU8 segmented)
_segment in class BackgroundModelMoving<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Motion extends georegression.struct.InvertibleTransform<Motion>>