Click or drag to resize

LineSegmentDetectorCreate Method

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

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
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 (Optional)
Type: OpenCvSharpLineSegmentDetectorModes
The way found lines will be refined, see cv::LineSegmentDetectorModes
scale (Optional)
Type: SystemDouble
The scale of the image that will be used to find the lines. Range (0..1].
sigmaScale (Optional)
Type: SystemDouble
Sigma for Gaussian filter. It is computed as sigma = _sigma_scale/_scale.
quant (Optional)
Type: SystemDouble
Bound to the quantization error on the gradient norm.
angTh (Optional)
Type: SystemDouble
Gradient angle tolerance in degrees.
logEps (Optional)
Type: SystemDouble
Detection threshold: -log10(NFA) \> log_eps. Used only when advancent refinement is chosen.
densityTh (Optional)
Type: SystemDouble
Minimal density of aligned region points in the enclosing rectangle.
nBins (Optional)
Type: SystemInt32
Number of bins in pseudo-ordering of gradient modulus.

Return Value

Type: LineSegmentDetector
See Also