boofcv.factory.background
Class ConfigBackgroundBasic
- java.lang.Object
-
- boofcv.factory.background.ConfigBackgroundBasic
-
- All Implemented Interfaces:
- Configuration, java.io.Serializable
public class ConfigBackgroundBasic extends java.lang.Object implements Configuration
Configuration forConfigBackgroundBasic.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description TypeInterpolateinterpolationSpecifies which interpolation it will use.floatlearnRateSpecifies how fast it will adapt to changes in the background.floatthresholdThreshold for classifying a pixel as background or not.
-
Constructor Summary
Constructors Constructor and Description ConfigBackgroundBasic(float threshold)ConfigBackgroundBasic(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. If euclidean distance less than or equal to this value it is background.
-
interpolation
public TypeInterpolate interpolation
Specifies which interpolation it will use.TypeInterpolate.BILINEARorTypeInterpolate.NEAREST_NEIGHBORrecommended.ONLY USED FOR MOVING BACKGROUNDS!
-
-
Constructor Detail
-
ConfigBackgroundBasic
public ConfigBackgroundBasic(float threshold)
-
ConfigBackgroundBasic
public ConfigBackgroundBasic(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