OpenCV  4.1.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. More...
 

Functions

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

Detailed Description

Function Documentation

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 
)

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.