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 TypeFieldDescriptiondoubleGaussian sigma (scale, default = 2)doubleHigh threshold (defaults to 20% of maximum edge magnitude)doubleLow threshold (defaults to 5% of maximum edge magnitude)booleanSettrueto normalize gradient magnitude -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate()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, waitMethods 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
Settrueto normalize gradient magnitude
-
-
Constructor Details
-
Parameters
public Parameters()
-
-
Method Details
-
validate
Description copied from interface:ParameterBundleValidates the correctness and compatibility of the parameters in this bundle. Does nothing by default, implementing classes should override this method.- Specified by:
validatein interfaceParameterBundle<CannyEdgeDetector>- Returns:
- true if all parameters are OK, false otherwise
-