java.lang.Object
imagingbook.common.edges.CannyEdgeDetector.Parameters
- All Implemented Interfaces:
ParameterBundle<CannyEdgeDetector>
- Enclosing class:
- CannyEdgeDetector
public static class CannyEdgeDetector.Parameters
extends Object
implements ParameterBundle<CannyEdgeDetector>
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
Gaussian sigma (scale, default = 2)double
High threshold (defaults to 20% of maximum edge magnitude)double
Low threshold (defaults to 5% of maximum edge magnitude)boolean
Settrue
to normalize gradient magnitude -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
validate()
Validates the correctness and compatibility of the parameters in this bundle.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface imagingbook.common.util.ParameterBundle
getValidParameterFields, printToStream, printToString
-
Field Details
-
gSigma
Gaussian sigma (scale, default = 2) -
hiThr
High threshold (defaults to 20% of maximum edge magnitude) -
loThr
Low threshold (defaults to 5% of maximum edge magnitude) -
normGradMag
Settrue
to normalize gradient magnitude
-
-
Constructor Details
-
Parameters
public Parameters()
-
-
Method Details
-
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 interfaceParameterBundle<CannyEdgeDetector>
- Returns:
- true if all parameters are OK, false otherwise
-