Table of Contents

Constructor LSDParam

Namespace
OpenCvSharp.LineDescriptor
Assembly
OpenCvSharp.dll

LSDParam(double, double, double, double, double, double, int)

Parameters used by LSDDetector to configure the underlying Line Segment Detector (LSD) algorithm. The LSD algorithm is defined using the standard values below. Only advanced users may want to edit those, as to tailor it for their own application.

public LSDParam(double scale = 0.8, double sigmaScale = 0.6, double quant = 2, double angTh = 22.5, double logEps = 0, double densityTh = 0.7, int nBins = 1024)

Parameters

scale double

The scale of the image that will be used to find the lines. Range (0..1].

sigmaScale double

Sigma for the Gaussian filter. It is computed as sigma = sigmaScale/scale.

quant double

Bound to the quantization error on the gradient norm.

angTh double

Gradient angle tolerance in degrees.

logEps double

Detection threshold: -log10(NFA) > logEps. Used only when advanced refinement is chosen.

densityTh double

Minimal density of aligned region points in the enclosing rectangle.

nBins int

Number of bins in pseudo-ordering of gradient modulus.