ransac_plane — 3D robust_fit op

資料種類:pointsprimitive

呼叫: import fullseye as fs; fs.ledger.ransac_plane(points, thresh, iters=500, seed=0)(要直接呼叫實作,import ransac_fit; ransac_fit.ransac_plane(points, thresh, iters=500, seed=0);從台帳取用則 ops3d.get("ransac_plane"))

用法

對外點穩健的 RANSAC 平面擬合。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

3 点をサンプル → 平面法線(2 辺の外積)→ 点-平面距離 |n·(p-p0)| < `thresh` の

inlier を最大化 → 最終 inlier で最小二乗リフィット(法線=共分散の最小主軸)。

Args:

points: (N,3) 点群。

thresh: inlier とみなす点-平面距離のしきい値。

iters: RANSAC 反復数。

seed: 乱数シード(決定論)。

Returns:

(params, inlier_mask, info)。params = {"normal": (3,), "d": float, "point": (3,)}

で平面は `normal·x + d = 0`。inlier_mask=(N,) bool。

背景知識指南(該運算子背後的物理與規範)

blas_threads_and_memory — 行列分解が遅い理由の知識 — BLAS スレッド・キャッシュ・メモリ配置

參考(範例資料・文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

ransac_primpy -3.11 examples_3d/ransac_prim.py

型別可銜接的下一個運算子(可接受 primitive 作為輸入)

fuse_to_voxel · angle_between_lines · angle_between_planes · angle_line_plane · distance_point_plane · distance_point_line · distance_line_line · distance_segment_segment

同類別(robust_fit)

ransac_sphere · ransac_line · ransac_cylinder · fit_cone · fit_torus · fit_ellipsoid


*Provenance: ransac_fit.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.