public class BackgroundMovingBasic_IL<T extends boofcv.struct.image.ImageInterleaved,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundMovingBasic<T,Motion>
BackgroundMovingBasic for Planar.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.image.InterleavedF32 |
background |
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.InterleavedF32> |
interpolationBG |
protected boofcv.alg.interpolate.InterpolatePixelMB<T> |
interpolationInput |
protected float[] |
pixelBack |
protected float[] |
pixelInput |
learnRate, thresholdbackgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingBasic_IL(float learnRate,
float threshold,
boofcv.struct.distort.Point2Transform2Model_F32<Motion> transform,
boofcv.alg.interpolate.InterpolationType interpType,
boofcv.struct.image.ImageType<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_segment(Motion currentToWorld,
T frame,
boofcv.struct.image.GrayU8 segmented) |
boofcv.struct.image.InterleavedF32 |
getBackground()
Returns the background image.
|
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.
|
getLearnRate, getThreshold, setLearnRate, setThresholdsegment, updateBackgroundgetImageType, getUnknownValue, setUnknownValueprotected boofcv.struct.image.InterleavedF32 background
protected boofcv.alg.interpolate.InterpolatePixelMB<T extends boofcv.struct.image.ImageInterleaved> interpolationInput
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.InterleavedF32> interpolationBG
protected boofcv.core.image.GImageMultiBand inputWrapper
protected float[] pixelInput
protected float[] pixelBack
public boofcv.struct.image.InterleavedF32 getBackground()
Float.MAX_VALUE.public void initialize(int backgroundWidth,
int backgroundHeight,
Motion homeToWorld)
BackgroundModelMovinginitialize in class BackgroundModelMoving<T extends boofcv.struct.image.ImageInterleaved,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.ImageInterleaved>protected void updateBackground(int x0,
int y0,
int x1,
int y1,
T frame)
BackgroundModelMovingupdateBackground in class BackgroundModelMoving<T extends boofcv.struct.image.ImageInterleaved,Motion extends georegression.struct.InvertibleTransform<Motion>>