[][src]Function opencv::imgproc::create_line_segment_detector

pub fn create_line_segment_detector(
    _refine: i32,
    _scale: f64,
    _sigma_scale: f64,
    _quant: f64,
    _ang_th: f64,
    _log_eps: f64,
    _density_th: f64,
    _n_bins: i32
) -> Result<PtrOfLineSegmentDetector>

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

The LineSegmentDetector algorithm is defined using the standard values. Only advanced users may want to edit those, as to tailor it for their own application.

Parameters

  • _refine: The way found lines will be refined, see #LineSegmentDetectorModes
  • _scale: The scale of the image that will be used to find the lines. Range (0..1].
  • _sigma_scale: Sigma for Gaussian filter. It is computed as sigma = _sigma_scale/_scale.
  • _quant: Bound to the quantization error on the gradient norm.
  • _ang_th: Gradient angle tolerance in degrees.
  • _log_eps: Detection threshold: -log10(NFA) > log_eps. Used only when advance refinement is chosen.
  • _density_th: Minimal density of aligned region points in the enclosing rectangle.
  • _n_bins: Number of bins in pseudo-ordering of gradient modulus.

Note: Implementation has been removed due original code license conflict

C++ default parameters

  • _refine: LSD_REFINE_STD
  • _scale: 0.8
  • _sigma_scale: 0.6
  • _quant: 2.0
  • _ang_th: 22.5
  • _log_eps: 0
  • _density_th: 0.7
  • _n_bins: 1024