Package boofcv.alg.background.moving
Class BackgroundMovingBasic_PL<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
boofcv.alg.background.BackgroundModelMoving<T,Motion>
boofcv.alg.background.moving.BackgroundMovingBasic<Planar<T>,Motion>
boofcv.alg.background.moving.BackgroundMovingBasic_PL<T,Motion>
- All Implemented Interfaces:
BackgroundAlgorithmBasic
public class BackgroundMovingBasic_PL<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>
extends BackgroundMovingBasic<Planar<T>,Motion>
Implementation of
BackgroundMovingBasic
for Planar
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InterpolatePixelMB<Planar<GrayF32>>
protected InterpolatePixelMB<Planar<T>>
protected GImageMultiBand
protected BackgroundMovingBasic_PL<T,
Motion>.boofcv.alg.background.moving.BackgroundMovingBasic_PL.Helper protected GrowArray<BackgroundMovingBasic_PL<T,
Motion>.boofcv.alg.background.moving.BackgroundMovingBasic_PL.Helper> protected GImageMultiBand
Fields inherited from class boofcv.alg.background.moving.BackgroundMovingBasic
learnRate, threshold
Fields inherited from class boofcv.alg.background.BackgroundModelMoving
_transform, backgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, worldToCurrent, worldToHome
Fields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundMovingBasic_PL
(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, InterpolationType interpType, ImageType<Planar<T>> imageType) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
initialize
(int backgroundWidth, int backgroundHeight, Motion homeToWorld) Initializes background model.void
reset()
Resets model to its original stateprotected void
updateBackground
(int x0, int y0, int x1, int y1, Planar<T> frame) Call to update the background with the frame inside the bounding box.Methods inherited from class boofcv.alg.background.BackgroundModelMoving
segment, updateBackground
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.alg.background.BackgroundAlgorithmBasic
getLearnRate, getThreshold, setLearnRate, setThreshold
-
Field Details
-
_interpolationInput
-
_interpolationBG
-
backgroundWrapper
-
inputWrapper
-
helpers
protected GrowArray<BackgroundMovingBasic_PL<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>.boofcv.alg.background.moving.BackgroundMovingBasic_PL.Helper> helpers -
helper
protected BackgroundMovingBasic_PL<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>.boofcv.alg.background.moving.BackgroundMovingBasic_PL.Helper helper
-
-
Constructor Details
-
BackgroundMovingBasic_PL
public BackgroundMovingBasic_PL(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, InterpolationType interpType, ImageType<Planar<T>> imageType)
-
-
Method Details
-
initialize
Description copied from class:BackgroundModelMoving
Initializes background model. Specifies the size of the background image and transform from the "home" image to the background "world"- Specified by:
initialize
in classBackgroundModelMoving<Planar<T extends ImageGray<T>>,
Motion extends InvertibleTransform<Motion>> - Parameters:
backgroundWidth
- Width of backgroundbackgroundHeight
- Height of backgroundhomeToWorld
- Transform from home to world.
-
reset
public void reset()Description copied from class:BackgroundModel
Resets model to its original state -
updateBackground
Description copied from class:BackgroundModelMoving
Call to update the background with the frame inside the bounding box. Implementing class needs to make sure the rectangle is inside the background.- Specified by:
updateBackground
in classBackgroundModelMoving<Planar<T extends ImageGray<T>>,
Motion extends InvertibleTransform<Motion>>
-
_segment
- Specified by:
_segment
in classBackgroundModelMoving<Planar<T extends ImageGray<T>>,
Motion extends InvertibleTransform<Motion>>
-