public class BackgroundMovingBasic_PL<T extends boofcv.struct.image.ImageGray,Motion extends georegression.struct.InvertibleTransform<Motion>> extends BackgroundMovingBasic<boofcv.struct.image.Planar<T>,Motion>
BackgroundMovingBasic for Planar.| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> |
background |
protected boofcv.core.image.GImageMultiBand |
backgroundWrapper |
protected boofcv.core.image.GImageMultiBand |
inputWrapper |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<boofcv.struct.image.GrayF32>> |
interpolationBG |
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<T>> |
interpolationInput |
protected float[] |
pixelBack |
protected float[] |
pixelInput |
learnRate, thresholdbackgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, transform, work, worldToCurrent, worldToHomeimageType, unknownValue| Constructor and Description |
|---|
BackgroundMovingBasic_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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_segment(Motion currentToWorld,
boofcv.struct.image.Planar<T> frame,
boofcv.struct.image.GrayU8 segmented) |
boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> |
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,
boofcv.struct.image.Planar<T> frame)
Call to update the background with the frame inside the bounding box.
|
getLearnRate, getThreshold, setLearnRate, setThresholdsegment, updateBackgroundgetImageType, getUnknownValue, setUnknownValueprotected boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> background
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>> interpolationInput
protected boofcv.alg.interpolate.InterpolatePixelMB<boofcv.struct.image.Planar<boofcv.struct.image.GrayF32>> interpolationBG
protected boofcv.core.image.GImageMultiBand backgroundWrapper
protected boofcv.core.image.GImageMultiBand inputWrapper
protected float[] pixelInput
protected float[] pixelBack
public boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> getBackground()
Float.MAX_VALUE.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>>