Package boofcv.factory.background
Class ConfigBackgroundGaussian
java.lang.Object
boofcv.factory.background.BaseConfigBackground
boofcv.factory.background.ConfigBackgroundGaussian
- All Implemented Interfaces:
Configuration
,Serializable
Configuration for
ConfigBackgroundGaussian
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfloat
The initial variance assigned to a new pixel.Specifies which interpolation it will use.float
Specifies how fast it will adapt to changes in the background.float
Minimum Euclidean distance between the mean background and observed pixel value for it to be considered moving.float
Threshold for classifying a pixel as background or not.Fields inherited from class boofcv.factory.background.BaseConfigBackground
unknownValue
-
Constructor Summary
ConstructorDescriptionConfigBackgroundGaussian
(float threshold) ConfigBackgroundGaussian
(float threshold, float learnRate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.Methods inherited from class boofcv.factory.background.BaseConfigBackground
setTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
learnRate
public float learnRateSpecifies how fast it will adapt to changes in the background. From 0 to 1, inclusive. 0 = static 1.0 = instant. -
threshold
public float thresholdThreshold 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. Start tuning at 12. -
initialVariance
public float initialVarianceThe 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 minimumDifferenceMinimum 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
Specifies which interpolation it will use.InterpolationType.BILINEAR
orInterpolationType.NEAREST_NEIGHBOR
recommended.ONLY USED FOR MOVING BACKGROUNDS!
-
-
Constructor Details
-
ConfigBackgroundGaussian
public ConfigBackgroundGaussian(float threshold) -
ConfigBackgroundGaussian
public ConfigBackgroundGaussian(float threshold, float learnRate) -
ConfigBackgroundGaussian
public ConfigBackgroundGaussian()
-
-
Method Details
-
setTo
-
checkValidity
public void checkValidity()Description copied from interface:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
-