boofcv.factory.background
Class ConfigBackgroundGaussian
- java.lang.Object
-
- boofcv.factory.background.ConfigBackgroundGaussian
-
- All Implemented Interfaces:
- Configuration, java.io.Serializable
public class ConfigBackgroundGaussian extends java.lang.Object implements Configuration
Configuration forConfigBackgroundGaussian.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description floatinitialVarianceThe initial variance assigned to a new pixel.TypeInterpolateinterpolationSpecifies which interpolation it will use.floatlearnRateSpecifies how fast it will adapt to changes in the background.floatminimumDifferenceMinimum Euclidean distance between the mean background and observed pixel value for it to be considered moving.floatthresholdThreshold for classifying a pixel as background or not.
-
Constructor Summary
Constructors Constructor and Description ConfigBackgroundGaussian(float threshold)ConfigBackgroundGaussian(float threshold, float learnRate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcheckValidity()Checks to see if the configuration is valid.
-
-
-
Field Detail
-
learnRate
public float learnRate
Specifies how fast it will adapt to changes in the background. From 0 to 1, inclusive. 0 = static 1.0 = instant.
-
threshold
public float threshold
Threshold for classifying a pixel as background or not. This threshold is applied to the computed Mahalanobis from the distribution. An appropriate threshold will vary depending on the number of bands in the image.
-
initialVariance
public float initialVariance
The initial variance assigned to a new pixel. Larger values to reduce false positives due to under sampling. Don't set to zero since that can cause divided by zero errors.
-
minimumDifference
public float minimumDifference
Minimum Euclidean distance between the mean background and observed pixel value for it to be considered moving. This value is automatically scaled for the number of bands in the image.
-
interpolation
public TypeInterpolate interpolation
Specifies which interpolation it will use.TypeInterpolate.BILINEARorTypeInterpolate.NEAREST_NEIGHBORrecommended.ONLY USED FOR MOVING BACKGROUNDS!
-
-
Constructor Detail
-
ConfigBackgroundGaussian
public ConfigBackgroundGaussian(float threshold)
-
ConfigBackgroundGaussian
public ConfigBackgroundGaussian(float threshold, float learnRate)
-
-
Method Detail
-
checkValidity
public void checkValidity()
Description copied from interface:ConfigurationChecks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidityin interfaceConfiguration
-
-
DataMelt 3.0 © DataMelt by jWork.ORG