Package boofcv.factory.background
Class ConfigBackgroundBasic
java.lang.Object
boofcv.factory.background.BaseConfigBackground
boofcv.factory.background.ConfigBackgroundBasic
- All Implemented Interfaces:
Configuration,Serializable
Configuration for
ConfigBackgroundBasic.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionSpecifies which interpolation it will use.floatSpecifies how fast it will adapt to changes in the background.floatThreshold for classifying a pixel as background or not.Fields inherited from class boofcv.factory.background.BaseConfigBackground
unknownValue -
Constructor Summary
ConstructorsConstructorDescriptionConfigBackgroundBasic(float threshold) ConfigBackgroundBasic(float threshold, float learnRate) -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks to see if the configuration is valid.Methods inherited from class boofcv.factory.background.BaseConfigBackground
setToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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. If euclidean distance less than or equal to this value it is background. -
interpolation
Specifies which interpolation it will use.InterpolationType.BILINEARorInterpolationType.NEAREST_NEIGHBORrecommended.ONLY USED FOR MOVING BACKGROUNDS!
-
-
Constructor Details
-
ConfigBackgroundBasic
public ConfigBackgroundBasic(float threshold) -
ConfigBackgroundBasic
public ConfigBackgroundBasic(float threshold, float learnRate) -
ConfigBackgroundBasic
public ConfigBackgroundBasic()
-
-
Method Details
-
setTo
-
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.
-