ransac_line — 3D robust_fit op

数据种类:pointsprimitive

调用: import fullseye as fs; fs.ledger.ransac_line(points, thresh, iters=300, seed=0)(要直接调用实现,import ransac_fit; ransac_fit.ransac_line(points, thresh, iters=300, seed=0);从台账取用则 ops3d.get("ransac_line"))

用法

对外点稳健的 RANSAC 直线拟合。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

2 点をサンプル → 直線(通過点 + 方向)→ 点-直線距離 ‖(p-p0)×d‖ < `thresh` の

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

Args:

points: (N,3) 点群。

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

iters: RANSAC 反復数。

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

Returns:

(params, inlier_mask, info)。params = {"point": (3,), "direction": (3,)}(単位方向)。

背景知识指南(该算子背后的物理与约定)

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

参考(示例数据・文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

可运行的示例(实际调用该算子并已验证的样例)

geometry_metrologypy -3.11 examples_3d/geometry_metrology.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_plane · ransac_sphere · 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.