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
Modifier and TypeFieldDescriptionSpecifies which interpolation it will use.float
Specifies how fast it will adapt to changes in the background.float
Threshold for classifying a pixel as background or not.Fields inherited from class boofcv.factory.background.BaseConfigBackground
unknownValue
-
Constructor Summary
ConstructorDescriptionConfigBackgroundBasic
(float threshold) ConfigBackgroundBasic
(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. If euclidean distance less than or equal to this value it is background. -
interpolation
Specifies which interpolation it will use.InterpolationType.BILINEAR
orInterpolationType.NEAREST_NEIGHBOR
recommended.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:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
-