Package boofcv.alg.background.moving
Class BackgroundMovingGaussian<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.BackgroundMovingGaussian<T,Motion>
- All Implemented Interfaces:
BackgroundAlgorithmGaussian
- Direct Known Subclasses:
BackgroundMovingGaussian_IL,BackgroundMovingGaussian_IL_MT,BackgroundMovingGaussian_PL,BackgroundMovingGaussian_PL_MT,BackgroundMovingGaussian_SB,BackgroundMovingGaussian_SB_MT
public abstract class BackgroundMovingGaussian<T extends ImageBase<T>,Motion extends InvertibleTransform<Motion>>
extends BackgroundModelMoving<T,Motion>
implements BackgroundAlgorithmGaussian
Implementation of BackgroundAlgorithmGaussian for moving images.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatThe initial variance assigned to a new pixel.protected floatSpecifies how fast it will adapt.protected floatprotected 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
ConstructorsModifierConstructorDescriptionprotectedBackgroundMovingGaussian(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, ImageType<T> imageType) See class documentation for parameters definitions. -
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.BackgroundAlgorithmGaussian
getInitialVariance, getLearnRate, getMinimumDifference, getThreshold, setInitialVariance, setLearnRate, setMinimumDifference, 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. This threshold is applied to the computed Mahalanobis from the distribution. -
initialVariance
protected float initialVarianceThe initial variance assigned to a new pixel. Larger values to reduce false positives due to under sampling -
minimumDifference
protected float minimumDifference
-
-
Constructor Details
-
BackgroundMovingGaussian
protected BackgroundMovingGaussian(float learnRate, float threshold, Point2Transform2Model_F32<Motion> transform, ImageType<T> imageType) See class documentation for parameters definitions.- Parameters:
learnRate- Specifies how quickly the background is updated Try 0.05threshold- Threshold for background. ≥ 0. Try 10transform- Used to convert pixel coordinatesimageType- Type of input image
-