OpenCV  4.0.0
Open Source Computer Vision
Classes | Functions
Fast line detector

Classes

class  cv::ximgproc::FastLineDetector
 Class implementing the FLD (Fast Line Detector) algorithm described in [111] . More...
 

Functions

Ptr< FastLineDetectorcv::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)
 Creates a smart pointer to a FastLineDetector object and initializes it. More...
 

Detailed Description

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 
)
Python:
retval=cv.ximgproc.createFastLineDetector([, _length_threshold[, _distance_threshold[, _canny_th1[, _canny_th2[, _canny_aperture_size[, _do_merge]]]]]])

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

Parameters
_length_threshold10 - Segment shorter than this will be discarded
_distance_threshold1.41421356 - A point placed from a hypothesis line segment farther than this will be regarded as an outlier
_canny_th150 - First threshold for hysteresis procedure in Canny()
_canny_th250 - Second threshold for hysteresis procedure in Canny()
_canny_aperture_size3 - Aperturesize for the sobel operator in Canny()
_do_mergefalse - If true, incremental merging of segments will be perfomred
Examples:
fld_lines.cpp.