Package boofcv.alg.background.moving
Class BackgroundMovingGmm<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.BackgroundMovingGmm<T,Motion>
- All Implemented Interfaces:
BackgroundAlgorithmGmm
- Direct Known Subclasses:
BackgroundMovingGmm_MB
,BackgroundMovingGmm_MB_MT
,BackgroundMovingGmm_SB
,BackgroundMovingGmm_SB_MT
public abstract class BackgroundMovingGmm<T extends ImageBase<T>,Motion extends InvertibleTransform<Motion>>
extends BackgroundModelMoving<T,Motion>
implements BackgroundAlgorithmGmm
Implementation of BackgroundAlgorithmGmm
for moving images.
- See Also:
-
Field Summary
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
ModifierConstructorDescriptionprotected
BackgroundMovingGmm
(float learningPeriod, float decayCoef, int maxGaussians, Point2Transform2Model_F32<Motion> transformImageType, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the initial variance assigned to a pixelfloat
Returns the learning period.float
void
initialize
(int backgroundWidth, int backgroundHeight, Motion homeToWorld) Initializes background model.void
reset()
Resets model to its original statevoid
setInitialVariance
(float initialVariance) Sets the initial variance assigned to a pixelvoid
setLearningPeriod
(float period) Specifies the learning ratevoid
setMaxDistance
(float maxDistance) void
setSignificantWeight
(float value) Minimum value of a Gaussian's weight to be considered part of the backgroundMethods inherited from class boofcv.alg.background.BackgroundModelMoving
_segment, segment, updateBackground, updateBackground
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
Constructor Details
-
BackgroundMovingGmm
protected BackgroundMovingGmm(float learningPeriod, float decayCoef, int maxGaussians, Point2Transform2Model_F32<Motion> transformImageType, ImageType<T> imageType)
-
-
Method Details
-
reset
public void reset()Description copied from class:BackgroundModel
Resets model to its original state- Specified by:
reset
in classBackgroundModel<T extends ImageBase<T>>
-
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<T extends ImageBase<T>,
Motion extends InvertibleTransform<Motion>> - Parameters:
backgroundWidth
- Width of backgroundbackgroundHeight
- Height of backgroundhomeToWorld
- Transform from home to world.
-
getInitialVariance
public float getInitialVariance()Description copied from interface:BackgroundAlgorithmGmm
Returns the initial variance assigned to a pixel- Specified by:
getInitialVariance
in interfaceBackgroundAlgorithmGmm
- Returns:
- initial variance
-
setInitialVariance
public void setInitialVariance(float initialVariance) Description copied from interface:BackgroundAlgorithmGmm
Sets the initial variance assigned to a pixel- Specified by:
setInitialVariance
in interfaceBackgroundAlgorithmGmm
- Parameters:
initialVariance
- initial variance
-
getLearningPeriod
public float getLearningPeriod()Description copied from interface:BackgroundAlgorithmGmm
Returns the learning period.- Specified by:
getLearningPeriod
in interfaceBackgroundAlgorithmGmm
-
setLearningPeriod
public void setLearningPeriod(float period) Description copied from interface:BackgroundAlgorithmGmm
Specifies the learning rate- Specified by:
setLearningPeriod
in interfaceBackgroundAlgorithmGmm
- Parameters:
period
- Must be more than 0.
-
setSignificantWeight
public void setSignificantWeight(float value) Description copied from interface:BackgroundAlgorithmGmm
Minimum value of a Gaussian's weight to be considered part of the background- Specified by:
setSignificantWeight
in interfaceBackgroundAlgorithmGmm
-
getMaxDistance
public float getMaxDistance() -
setMaxDistance
public void setMaxDistance(float maxDistance) -
getCommon
-