Class ConfigBackgroundBasic

java.lang.Object
boofcv.factory.background.BaseConfigBackground
boofcv.factory.background.ConfigBackgroundBasic
All Implemented Interfaces:
Configuration, Serializable

public class ConfigBackgroundBasic extends BaseConfigBackground
Configuration for ConfigBackgroundBasic.
See Also:
  • Field Details

    • 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 InterpolationType interpolation
      Specifies which interpolation it will use. InterpolationType.BILINEAR or InterpolationType.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.