features op• 資料種類:image → feature
• 呼叫:fullseye.apply(img, "cv_hough_lines", a=0.5, b=0.5)(2-D 的模型是一張圖 + 兩個純量旋鈕 a,b∈[0,1])
• HALCON 對應:hough_lines(其含義與參數可參考 HALCON 手冊)
基於機率霍夫變換的直線(線段)偵測(單一純量特徵,OpenCV 實作)。先用 Canny 產生邊緣影像,再以投票方式在其中尋找排成直線的邊緣像素集合,將其偵測為線段 —— 這裡只回傳偵測到的線段數量(若為 0 條則回傳 0)。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
HALCON の hough_lines(Detect lines in edge images with the help of the Hough transform and returns it in HNF.)に相当(近似。線のパラメータではなく本数のみ)。実装は `cv2.HoughLinesP(Canny(_u8(v),50,150), 1, pi/180, threshold=int(20+40*a), minLineLength=int(10+20*b), maxLineGap=5)` —— a は投票数のしきい値(直線と認める最低票数)を 20〜60 に、b は最小線分長を 10〜30 に振る。Canny の内部しきい値(50, 150)と maxLineGap(5)は固定。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者・年份)與用途見上面的族使用指南。
• gallery2d_features — py -3.11 examples/gallery2d_features.py
feature 作為輸入)features)blob_count · area_frac · count_contours · total_length · vol_count · sk_euler · sk_entropy_feat · sk_blur_effect
*Provenance: ops.py — 2D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.