create_fast_line_detector

Function create_fast_line_detector 

Source
pub fn create_fast_line_detector(
    length_threshold: i32,
    distance_threshold: f32,
    canny_th1: f64,
    canny_th2: f64,
    canny_aperture_size: i32,
    do_merge: bool,
) -> Result<Ptr<FastLineDetector>>
Expand description

Creates a smart pointer to a FastLineDetector object and initializes it

§Parameters

  • length_threshold: Segment shorter than this will be discarded
  • distance_threshold: A point placed from a hypothesis line segment farther than this will be regarded as an outlier
  • canny_th1: First threshold for hysteresis procedure in Canny()
  • canny_th2: Second threshold for hysteresis procedure in Canny()
  • canny_aperture_size: Aperturesize for the sobel operator in Canny(). If zero, Canny() is not applied and the input image is taken as an edge image.
  • do_merge: If true, incremental merging of segments will be performed

§C++ default parameters

  • length_threshold: 10
  • distance_threshold: 1.414213562f
  • canny_th1: 50.0
  • canny_th2: 50.0
  • canny_aperture_size: 3
  • do_merge: false