Table of Contents

Class EdgeDrawingParams

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Parameters for EdgeDrawing algorithms.

public sealed class EdgeDrawingParams
Inheritance
EdgeDrawingParams
Inherited Members

Remarks

Instances can only be obtained via GetParams() or Default(), ensuring the values are always initialized from the native C++ defaults.

Properties

AnchorThresholdValue

Threshold for selecting anchor points. Default: 0.

public int AnchorThresholdValue { get; set; }

Property Value

int

EdgeDetectionOperator

Gradient operator for edge detection. One of GradientOperator. Default: PREWITT.

public GradientOperator EdgeDetectionOperator { get; set; }

Property Value

GradientOperator

GradientThresholdValue

Gradient threshold between pixels used to build the gradient image. Default: 20.

public int GradientThresholdValue { get; set; }

Property Value

int

LineFitErrorThreshold

Default: 1.0.

public double LineFitErrorThreshold { get; set; }

Property Value

double

MaxDistanceBetweenTwoLines

Default: 6.0.

public double MaxDistanceBetweenTwoLines { get; set; }

Property Value

double

MaxErrorThreshold

Default: 1.3.

public double MaxErrorThreshold { get; set; }

Property Value

double

MinLineLength

Minimum line length to detect.

public int MinLineLength { get; set; }

Property Value

int

MinPathLength

Minimum connected-pixel length to form an edge segment. Default: 10.

public int MinPathLength { get; set; }

Property Value

int

NFAValidation

Whether NFA (Number of False Alarms) validation is used for lines and ellipses. Default: true.

public bool NFAValidation { get; set; }

Property Value

bool

PFmode

Parameter Free mode. Default: false.

public bool PFmode { get; set; }

Property Value

bool

ScanInterval

Scan interval. Default: 1.

public int ScanInterval { get; set; }

Property Value

int

Sigma

Sigma for internal GaussianBlur. Default: 1.0.

public float Sigma { get; set; }

Property Value

float

SumFlag

Default: false.

public bool SumFlag { get; set; }

Property Value

bool

Methods

Default()

Returns a new instance initialized with the native library's default values for EdgeDrawing::Params. Always stays in sync with the C++ defaults.

public static EdgeDrawingParams Default()

Returns

EdgeDrawingParams