OpenCV  4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Functions
Fast line detector

Detailed Description

Classes

class  cv::ximgproc::FastLineDetector
 Class implementing the FLD (Fast Line Detector) algorithm described in [156] . 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.
 

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:
cv.ximgproc.createFastLineDetector([, length_threshold[, distance_threshold[, canny_th1[, canny_th2[, canny_aperture_size[, do_merge]]]]]]) -> retval

#include <opencv2/ximgproc/fast_line_detector.hpp>

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

Parameters
length_thresholdSegment shorter than this will be discarded
distance_thresholdA point placed from a hypothesis line segment farther than this will be regarded as an outlier
canny_th1First threshold for hysteresis procedure in Canny()
canny_th2Second threshold for hysteresis procedure in Canny()
canny_aperture_sizeAperturesize for the sobel operator in Canny(). If zero, Canny() is not applied and the input image is taken as an edge image.
do_mergeIf true, incremental merging of segments will be performed