Class ConfigExtract

All Implemented Interfaces:
Configuration, Serializable
Direct Known Subclasses:

public class ConfigExtract extends Object implements Configuration
General configuration for NonMaxSuppression.
See Also:
  • Field Details

    • radius

      public int radius
      Search radius of the non-maximum region. Most common value is 1 for a 3x3 region. Default is 1.
    • threshold

      public float threshold
      Minimum feature intensity it will consider when detecting a maximum. For local minimums it will use a value of -threshold. Defaults to 0.
    • ignoreBorder

      public int ignoreBorder
      Size of border around the image in which pixels are not considered. Default is 0.
    • useStrictRule

      public boolean useStrictRule
      Is a strict test used to test for local maximums. If strict the local maximum must be greater than all its neighbors, otherwise it just needs to be greater than or equal to its neighbors. Default is true.
    • detectMinimums

      public boolean detectMinimums
      If false then local maximums will be found
    • detectMaximums

      public boolean detectMaximums
      If true then local maximums will be found
  • Constructor Details

    • ConfigExtract

      public ConfigExtract(int radius, float threshold, int ignoreBorder, boolean useStrictRule, boolean detectMinimums, boolean detectMaximums)
    • ConfigExtract

      public ConfigExtract(int radius, float threshold, int ignoreBorder, boolean useStrictRule)
    • ConfigExtract

      public ConfigExtract(int radius, float threshold)
      Constructor which defaults to an ignore border of 0 and to using a strict rule
    • ConfigExtract

      public ConfigExtract()
  • Method Details

    • max

      public static ConfigExtract max(int radius, float threshold, int ignoreBorder, boolean useStrictRule)
    • min

      public static ConfigExtract min(int radius, float threshold, int ignoreBorder, boolean useStrictRule)
    • setTo

      public ConfigExtract setTo(ConfigExtract src)
    • 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.
      Specified by:
      checkValidity in interface Configuration