OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
快速直线检测器

详细描述

类  cv::ximgproc::FastLineDetector
 实现了 [158] 中描述的 FLD (快速直线检测器) 算法的类。 更多...
 

函数

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)
 创建指向 FastLineDetector 对象的智能指针并进行初始化。
 

函数文档

◆ 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>

创建指向 FastLineDetector 对象的智能指针并进行初始化。

参数
length_threshold短于此长度的线段将被丢弃
distance_threshold从假设线段放置的点如果远于此距离,将被视为异常值
canny_th1Canny() 中滞后过程的第一个阈值
canny_th2Canny() 中滞后过程的第二个阈值
canny_aperture_sizeCanny() 中 Sobel 算子的孔径大小。 如果为零,则不应用 Canny(),并将输入图像视为边缘图像。
do_merge如果为 true,则将执行线段的增量合并