Fast line detector#

Detailed Description#

Classes#

Name

Description

class cv::ximgproc::FastLineDetector

Class implementing the FLD (Fast Line Detector) algorithm described in [174] . View details

Function Documentation#

createFastLineDetector()#

Ptr< FastLineDetector > cv::ximgproc::createFastLineDetector(
int length_threshold = 10,
float distance_threshold = 1.414213562f,
double canny_th1 = 50.0,
double canny_th2 = 50.0,
int canny_aperture_size = 3,
bool do_merge = false )

#include <opencv2/ximgproc/fast_line_detector.hpp>

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