Package boofcv.alg.background.moving
Class BackgroundMovingGaussian_PL_MT<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.BackgroundMovingGaussian<Planar<T>,Motion>
boofcv.alg.background.moving.BackgroundMovingGaussian_PL_MT<T,Motion>
- All Implemented Interfaces:
BackgroundAlgorithmGaussian
@Generated("boofcv.alg.background.moving.BackgroundMovingGaussian_PL")
public class BackgroundMovingGaussian_PL_MT<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>
extends BackgroundMovingGaussian<Planar<T>,Motion>
Implementation of
BackgroundMovingGaussian for Planar.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InterpolatePixelMB<InterleavedF32>protected InterpolatePixelMB<Planar<T>>protected BackgroundMovingGaussian_PL_MT<T,Motion>.boofcv.alg.background.moving.BackgroundMovingGaussian_PL_MT.Helper protected GrowArray<BackgroundMovingGaussian_PL_MT<T,Motion>.boofcv.alg.background.moving.BackgroundMovingGaussian_PL_MT.Helper> protected GImageMultiBandFields inherited from class boofcv.alg.background.moving.BackgroundMovingGaussian
initialVariance, learnRate, minimumDifference, thresholdFields inherited from class boofcv.alg.background.BackgroundModelMoving
_transform, backgroundHeight, backgroundWidth, corners, currentToWorld, homeToWorld, worldToCurrent, worldToHomeFields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundMovingGaussian_PL_MT(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, InterpolationType interpType, ImageType<Planar<T>> imageType) Configurations background removal. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidinitialize(int backgroundWidth, int backgroundHeight, Motion homeToWorld) Initializes background model.voidreset()Resets model to its original stateprotected voidupdateBackground(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, updateBackgroundMethods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.alg.background.BackgroundAlgorithmGaussian
getInitialVariance, getLearnRate, getMinimumDifference, getThreshold, setInitialVariance, setLearnRate, setMinimumDifference, setThreshold
-
Field Details
-
_interpolationInput
-
_interpolationBG
-
inputWrapper
-
helpers
protected GrowArray<BackgroundMovingGaussian_PL_MT<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>.boofcv.alg.background.moving.BackgroundMovingGaussian_PL_MT.Helper> helpers -
helper
protected BackgroundMovingGaussian_PL_MT<T extends ImageGray<T>,Motion extends InvertibleTransform<Motion>>.boofcv.alg.background.moving.BackgroundMovingGaussian_PL_MT.Helper helper
-
-
Constructor Details
-
BackgroundMovingGaussian_PL_MT
public BackgroundMovingGaussian_PL_MT(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, InterpolationType interpType, ImageType<Planar<T>> imageType) Configurations background removal.- Parameters:
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.
-
-
Method Details
-
initialize
Description copied from class:BackgroundModelMovingInitializes background model. Specifies the size of the background image and transform from the "home" image to the background "world"- Specified by:
initializein 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:BackgroundModelResets model to its original state -
updateBackground
Description copied from class:BackgroundModelMovingCall 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:
updateBackgroundin classBackgroundModelMoving<Planar<T extends ImageGray<T>>,Motion extends InvertibleTransform<Motion>>
-
_segment
- Specified by:
_segmentin classBackgroundModelMoving<Planar<T extends ImageGray<T>>,Motion extends InvertibleTransform<Motion>>
-