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,則將執行線段的增量合併