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, worldToHomeFields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackgroundMovingGmm(float learningPeriod, float decayCoef, int maxGaussians, Point2Transform2Model_F32<Motion> transformImageType, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the initial variance assigned to a pixelfloatReturns the learning period.floatvoidinitialize(int backgroundWidth, int backgroundHeight, Motion homeToWorld) Initializes background model.voidreset()Resets model to its original statevoidsetInitialVariance(float initialVariance) Sets the initial variance assigned to a pixelvoidsetLearningPeriod(float period) Specifies the learning ratevoidsetMaxDistance(float maxDistance) voidsetSignificantWeight(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, updateBackgroundMethods 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:BackgroundModelResets model to its original state- Specified by:
resetin classBackgroundModel<T extends ImageBase<T>>
-
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<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:BackgroundAlgorithmGmmReturns the initial variance assigned to a pixel- Specified by:
getInitialVariancein interfaceBackgroundAlgorithmGmm- Returns:
- initial variance
-
setInitialVariance
public void setInitialVariance(float initialVariance) Description copied from interface:BackgroundAlgorithmGmmSets the initial variance assigned to a pixel- Specified by:
setInitialVariancein interfaceBackgroundAlgorithmGmm- Parameters:
initialVariance- initial variance
-
getLearningPeriod
public float getLearningPeriod()Description copied from interface:BackgroundAlgorithmGmmReturns the learning period.- Specified by:
getLearningPeriodin interfaceBackgroundAlgorithmGmm
-
setLearningPeriod
public void setLearningPeriod(float period) Description copied from interface:BackgroundAlgorithmGmmSpecifies the learning rate- Specified by:
setLearningPeriodin interfaceBackgroundAlgorithmGmm- Parameters:
period- Must be more than 0.
-
setSignificantWeight
public void setSignificantWeight(float value) Description copied from interface:BackgroundAlgorithmGmmMinimum value of a Gaussian's weight to be considered part of the background- Specified by:
setSignificantWeightin interfaceBackgroundAlgorithmGmm
-
getMaxDistance
public float getMaxDistance() -
setMaxDistance
public void setMaxDistance(float maxDistance) -
getCommon
-