Package boofcv.alg.background.moving
Class BackgroundMovingBasic<T extends ImageBase<T>,Motion extends InvertibleTransform<Motion>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
boofcv.alg.background.BackgroundModelMoving<T,Motion>
boofcv.alg.background.moving.BackgroundMovingBasic<T,Motion>
- All Implemented Interfaces:
BackgroundAlgorithmBasic
- Direct Known Subclasses:
BackgroundMovingBasic_IL,BackgroundMovingBasic_IL_MT,BackgroundMovingBasic_PL,BackgroundMovingBasic_PL_MT,BackgroundMovingBasic_SB,BackgroundMovingBasic_SB_MT
public abstract class BackgroundMovingBasic<T extends ImageBase<T>,Motion extends InvertibleTransform<Motion>>
extends BackgroundModelMoving<T,Motion>
implements BackgroundAlgorithmBasic
Implementation of BackgroundAlgorithmBasic for moving images.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatSpecifies how fast it will adapt.protected floatThreshold for classifying a pixel as background or not.Fields 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
ConstructorsModifierConstructorDescriptionprotectedBackgroundMovingBasic(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, ImageType<T> imageType) Configures background model -
Method Summary
Methods inherited from class boofcv.alg.background.BackgroundModelMoving
_segment, initialize, segment, updateBackground, updateBackgroundMethods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, reset, setUnknownValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.alg.background.BackgroundAlgorithmBasic
getLearnRate, getThreshold, setLearnRate, setThreshold
-
Field Details
-
learnRate
protected float learnRateSpecifies how fast it will adapt. 0 to 1, inclusive. 0 = static 1.0 = instant. -
threshold
protected float thresholdThreshold for classifying a pixel as background or not. If euclidean distance less than or equal to this value it is background.
-
-
Constructor Details
-
BackgroundMovingBasic
protected BackgroundMovingBasic(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, ImageType<T> imageType) Configures background model- Parameters:
learnRate- learning rate, 0 to 1. 0 = fastest and 1 = slowest.threshold- Euclidean distance threshold. Background is ≤ this valuetransform- Point transformimageType- Type of input image
-