Builder for ImageGenerator.ConditionOptions.EdgeConditionOptions.
These parameters are used to config Canny edge algorithm of OpenCV.
See more details: https://docs.opencv.org/3.4/dd/d1a/group__imgproc__feature.html#ga04723e007ed888ddf11d9ba04e2232de
Public Constructors
|
Builder()
|
Public Methods
| final ImageGenerator.ConditionOptions.EdgeConditionOptions |
build()
Validates and builds the
ImageGenerator.ConditionOptions.EdgeConditionOptions instance. |
| abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder | |
| abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder |
setL2Gradient(Boolean l2Gradient)
flag, indicating whether a more accurate L2 norm should be used to calculate the image
gradient magnitude ( L2gradient=true ), or whether the default L1 norm is enough (
L2gradient=false ).
|
| abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder | |
| abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder | |
| abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder |
Inherited Methods
Public Constructors
public Builder ()
Public Methods
public final ImageGenerator.ConditionOptions.EdgeConditionOptions build ()
Validates and builds the ImageGenerator.ConditionOptions.EdgeConditionOptions instance.
public abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setApertureSize (Integer apertureSize)
Aperture size for the Sobel operator. Typical range is 3~7.
Parameters
| apertureSize |
|---|
public abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setL2Gradient (Boolean l2Gradient)
flag, indicating whether a more accurate L2 norm should be used to calculate the image gradient magnitude ( L2gradient=true ), or whether the default L1 norm is enough ( L2gradient=false ).
Parameters
| l2Gradient |
|---|
public abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setPluginModelBaseOptions (BaseOptions baseOptions)
Set the base options for plugin model.
Parameters
| baseOptions |
|---|
public abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setThreshold1 (Float threshold1)
First threshold for the hysteresis procedure.
Parameters
| threshold1 |
|---|
public abstract ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setThreshold2 (Float threshold2)
Second threshold for the hysteresis procedure.
Parameters
| threshold2 |
|---|