OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
高速直線検出器

詳細説明

クラス

class  cv::ximgproc::FastLineDetector
 [160] で説明されている FLD(Fast Line Detector)アルゴリズムを実装したクラス。 詳細...
 

関数

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() におけるヒステリシス処理の第1しきい値
canny_th2Canny() におけるヒステリシス処理の第2しきい値
canny_aperture_sizeCanny() 内のSobel演算子のアパーチャサイズ。ゼロの場合、Canny() は適用されず、入力画像がそのままエッジ画像として扱われる。
do_mergetrueの場合、セグメントの逐次的なマージが実行される