ransac_line — 3D robust_fit op

• Data kinds: points → primitive

• Call: import fullseye as fs; fs.ledger.ransac_line(points, thresh, iters=300, seed=0) (implementation को सीधे call करना हो तो import ransac_fit; ransac_fit.ransac_line(points, thresh, iters=300, seed=0), registry से लेना हो तो ops3d.get("ransac_line"))

उपयोग

outliers के प्रति robust RANSAC line fitting।

2 points sample करें → line (line पर एक point + direction) → point-line distance ‖(p-p0)×d‖ < thresh वाले inlier को maximise करें → अंतिम inlier पर least squares refit (direction = covariance का major principal axis)।

Args:

points: (N,3) point cloud।

thresh: inlier मानने के लिए point-line distance का threshold।

iters: RANSAC iterations की संख्या।

seed: random seed (deterministic)।

Returns:

(params, inlier_mask, info)। params = {"point": (3,), "direction": (3,)} (unit direction)।

पृष्ठभूमि guides (इस op के पीछे की physics और conventions)

• blas_threads_and_memory — Matrix decompositions धीमे क्यों हैं — BLAS threads, caches, memory layout

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• geometry_metrology — py -3.11 examples_3d/geometry_metrology.py

वे अगले ops जिनसे type जुड़ता है (primitive को input के रूप में लेते हैं)

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

इसी category के (robust_fit)

ransac_plane · ransac_sphere · ransac_cylinder · fit_cone · fit_torus · fit_ellipsoid


*Provenance: ransac_fit.py — 3D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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