Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(LineSegmentDetectorModes, double, double, double, double, double, double, int)

Creates a smart pointer to a LineSegmentDetector object and initializes it.

public static LineSegmentDetector Create(LineSegmentDetectorModes refine = LineSegmentDetectorModes.RefineNone, 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

refine LineSegmentDetectorModes

The way found lines will be refined, see cv::LineSegmentDetectorModes

scale double

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

sigmaScale double

Sigma for Gaussian filter. It is computed as sigma = _sigma_scale/_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) > log_eps. Used only when advancent 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.

Returns

LineSegmentDetector