Package boofcv.alg.background.stationary
Class BackgroundStationaryGmm<T extends ImageBase<T>>
java.lang.Object
boofcv.alg.background.BackgroundModel<T>
boofcv.alg.background.BackgroundModelStationary<T>
boofcv.alg.background.stationary.BackgroundStationaryGmm<T>
- All Implemented Interfaces:
BackgroundAlgorithmGmm
- Direct Known Subclasses:
BackgroundStationaryGmm_MB,BackgroundStationaryGmm_MB_MT,BackgroundStationaryGmm_SB,BackgroundStationaryGmm_SB_MT
public abstract class BackgroundStationaryGmm<T extends ImageBase<T>>
extends BackgroundModelStationary<T>
implements BackgroundAlgorithmGmm
Implementation of BackgroundAlgorithmGmm for stationary images.
- See Also:
-
Field Summary
Fields inherited from class boofcv.alg.background.BackgroundModel
imageType, unknownValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackgroundStationaryGmm(float learningPeriod, float decayCoef, int maxGaussians, ImageType<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the initial variance assigned to a pixelfloatReturns the learning period.floatvoidreset()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 backgroundvoidupdateBackground(T frame) Updates the background with new image information.voidupdateBackground(T frame, @Nullable GrayU8 mask) Updates the background and segments it at the same time.Methods inherited from class boofcv.alg.background.BackgroundModelStationary
segmentMethods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, setUnknownValue
-
Constructor Details
-
BackgroundStationaryGmm
-
-
Method Details
-
reset
public void reset()Description copied from class:BackgroundModelResets model to its original state- Specified by:
resetin classBackgroundModel<T extends ImageBase<T>>
-
updateBackground
Description copied from class:BackgroundModelStationaryUpdates the background with new image information.- Specified by:
updateBackgroundin classBackgroundModelStationary<T extends ImageBase<T>>
-
updateBackground
Description copied from class:BackgroundModelStationaryUpdates the background and segments it at the same time. In some implementations this can be significantly faster than doing it with separate function calls. Segmentation is performed using the model which it has prior to the update.- Overrides:
updateBackgroundin classBackgroundModelStationary<T extends ImageBase<T>>- Parameters:
mask- If null then the background mask is ignored
-
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)
-