boofcv.alg.background.stationary
Class BackgroundStationaryGaussian<T extends ImageBase>
- java.lang.Object
-
- boofcv.alg.background.BackgroundModel<T>
-
- boofcv.alg.background.BackgroundModelStationary<T>
-
- boofcv.alg.background.stationary.BackgroundStationaryGaussian<T>
-
- All Implemented Interfaces:
- BackgroundAlgorithmGaussian
- Direct Known Subclasses:
- BackgroundStationaryGaussian_IL, BackgroundStationaryGaussian_PL, BackgroundStationaryGaussian_SB
public abstract class BackgroundStationaryGaussian<T extends ImageBase> extends BackgroundModelStationary<T> implements BackgroundAlgorithmGaussian
Implementation of
BackgroundAlgorithmGaussianfor moving images.- See Also:
BackgroundAlgorithmGaussian,BackgroundModelMoving
-
-
Constructor Summary
Constructors Constructor and Description BackgroundStationaryGaussian(float learnRate, float threshold, ImageType<T> imageType)See class documentation for parameters definitions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetInitialVariance()Returns the initial variance assigned to a pixelfloatgetLearnRate()Returns the learning rate.floatgetMinimumDifference()floatgetThreshold()voidsetInitialVariance(float initialVariance)Sets the initial variance assigned to a pixelvoidsetLearnRate(float learnRate)Specifies the learning ratevoidsetMinimumDifference(float minimumDifference)voidsetThreshold(float threshold)-
Methods inherited from class boofcv.alg.background.BackgroundModelStationary
segment, updateBackground
-
Methods inherited from class boofcv.alg.background.BackgroundModel
getImageType, getUnknownValue, reset, setUnknownValue
-
-
-
-
Constructor Detail
-
BackgroundStationaryGaussian
public BackgroundStationaryGaussian(float learnRate, float threshold, 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 10imageType- Type of input image
-
-
Method Detail
-
getInitialVariance
public float getInitialVariance()
Description copied from interface:BackgroundAlgorithmGaussianReturns the initial variance assigned to a pixel- Specified by:
getInitialVariancein interfaceBackgroundAlgorithmGaussian- Returns:
- initial variance
-
setInitialVariance
public void setInitialVariance(float initialVariance)
Description copied from interface:BackgroundAlgorithmGaussianSets the initial variance assigned to a pixel- Specified by:
setInitialVariancein interfaceBackgroundAlgorithmGaussian- Parameters:
initialVariance- initial variance
-
getLearnRate
public float getLearnRate()
Description copied from interface:BackgroundAlgorithmGaussianReturns the learning rate.- Specified by:
getLearnRatein interfaceBackgroundAlgorithmGaussian- Returns:
- 0 (slow) to 1 (fast)
-
setLearnRate
public void setLearnRate(float learnRate)
Description copied from interface:BackgroundAlgorithmGaussianSpecifies the learning rate- Specified by:
setLearnRatein interfaceBackgroundAlgorithmGaussian- Parameters:
learnRate- 0 (slow) to 1 (fast)
-
getThreshold
public float getThreshold()
- Specified by:
getThresholdin interfaceBackgroundAlgorithmGaussian
-
setThreshold
public void setThreshold(float threshold)
- Specified by:
setThresholdin interfaceBackgroundAlgorithmGaussian
-
getMinimumDifference
public float getMinimumDifference()
- Specified by:
getMinimumDifferencein interfaceBackgroundAlgorithmGaussian
-
setMinimumDifference
public void setMinimumDifference(float minimumDifference)
- Specified by:
setMinimumDifferencein interfaceBackgroundAlgorithmGaussian
-
-
DataMelt 3.0 © DataMelt by jWork.ORG