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
Syntaxpublic 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
)
Public Shared Function Create (
Optional refine As LineSegmentDetectorModes = LineSegmentDetectorModes.RefineNone,
Optional scale As Double = 0.8,
Optional sigmaScale As Double = 0.6,
Optional quant As Double = 2,
Optional angTh As Double = 22.5,
Optional logEps As Double = 0,
Optional densityTh As Double = 0.7,
Optional nBins As Integer = 1024
) As LineSegmentDetector
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
)
static member Create :
?refine : LineSegmentDetectorModes *
?scale : float *
?sigmaScale : float *
?quant : float *
?angTh : float *
?logEps : float *
?densityTh : float *
?nBins : int
(* Defaults:
let _refine = defaultArg refine LineSegmentDetectorModes.RefineNone
let _scale = defaultArg scale 0.8
let _sigmaScale = defaultArg sigmaScale 0.6
let _quant = defaultArg quant 2
let _angTh = defaultArg angTh 22.5
let _logEps = defaultArg logEps 0
let _densityTh = defaultArg densityTh 0.7
let _nBins = defaultArg nBins 1024
*)
-> LineSegmentDetector
OpenCvSharp.LineSegmentDetector.Create = function(refine, scale, sigmaScale, quant, angTh, logEps, densityTh, nBins);
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