Class CannyEdgeDetector.Parameters

java.lang.Object
imagingbook.common.edges.CannyEdgeDetector.Parameters
All Implemented Interfaces:
ParameterBundle<CannyEdgeDetector>
Enclosing class:
CannyEdgeDetector

  • Field Details

    • gSigma

      public double gSigma
      Gaussian sigma (scale, default = 2)
    • hiThr

      public double hiThr
      High threshold (defaults to 20% of maximum edge magnitude)
    • loThr

      public double loThr
      Low threshold (defaults to 5% of maximum edge magnitude)
    • normGradMag

      public boolean normGradMag
      Set true to normalize gradient magnitude
  • Constructor Details

  • Method Details

    • validate

      public boolean validate()
      Description copied from interface: ParameterBundle
      Validates the correctness and compatibility of the parameters in this bundle. Does nothing by default, implementing classes should override this method.
      Specified by:
      validate in interface ParameterBundle<CannyEdgeDetector>
      Returns:
      true if all parameters are OK, false otherwise