Class ConfigSlic

java.lang.Object
boofcv.factory.segmentation.ConfigSlic
All Implemented Interfaces:
Configuration, Serializable

public class ConfigSlic
extends Object
implements Configuration
Configuration used when creating SegmentSlic via FactoryImageSegmentation.
See Also:
Serialized Form
  • Field Details

    • numberOfRegions

      public int numberOfRegions
      Number of regions which will be initially seeded. The actually number of regions at the end will vary a bit due to merging of small regions and the image border.
    • spacialWeight

      public float spacialWeight
      Larger values place more weight on the spacial component. For 8-bit RGB a value of 200 works well.
    • totalIterations

      public int totalIterations
      Number of mean-shift iterations. Typically has converged by 10 iterations.
    • connectRule

      public ConnectRule connectRule
      Connection rule that is used when merging small regions.
  • Constructor Details

    • ConfigSlic

      public ConfigSlic​(int numberOfRegions)
    • ConfigSlic

      public ConfigSlic​(int numberOfRegions, float spacialWeight)
    • ConfigSlic

      public ConfigSlic()
  • Method Details

    • setTo

      public ConfigSlic setTo​(ConfigSlic 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