fullseye

ransac_line — 3D robust_fit op

使い方

外れ値に頑健な 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,)}(単位方向)。

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(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 operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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