Class ConfigThreshold

java.lang.Object
boofcv.factory.filter.binary.ConfigThreshold
All Implemented Interfaces:
Configuration, Serializable
Direct Known Subclasses:
ConfigThresholdBlockMinMax, ConfigThresholdLocalOtsu

public class ConfigThreshold extends Object implements Configuration
Configuration for all threshold types.
See Also:
  • Field Details

    • type

      public ThresholdType type
      Which algorithm to use
    • fixedThreshold

      public double fixedThreshold
      The threshold to apply to the image. Only valid for fixed threshold.
    • scale

      public double scale
      Scale factor applied to computed threshold. Only used with adaptive techniques. 0.95 is a good starting value when tuning. It will remove much of the noise in nearly uniform regions without degrading interesting features by much.
    • down

      public boolean down
      If true then it thresholds down
    • width

      public ConfigLength width
      Radius of adaptive threshold. If relative then it's relative to the min(width,height) of the image
    • niblackK

      public float niblackK
      Positive parameter used to tune threshold in members of the Niblack family. Try 0.3 or 0.5
      See Also:
    • nickK

      public float nickK
      Threshold for NICK. -0.1 to -0.2 is recommended
      See Also:
    • minPixelValue

      public int minPixelValue
      Minimum pixel value. Only used for some algorithms.
    • maxPixelValue

      public int maxPixelValue
      Maximum pixel value. Only used for some algorithms.
    • thresholdFromLocalBlocks

      public boolean thresholdFromLocalBlocks
      If a block threshold is being used then this indicates if the threshold should be computed using a local 3x3 block region (true) or just one block (false). The local region should result in a less abrupt change in threshold.
  • Constructor Details

    • ConfigThreshold

      public ConfigThreshold()
  • Method Details