ransac_plane — 3D robust_fit op

• Data kinds: points → primitive

• Call: import fullseye as fs; fs.ledger.ransac_plane(points, thresh, iters=500, seed=0) (to call the implementation directly, import ransac_fit; ransac_fit.ransac_plane(points, thresh, iters=500, seed=0); from the registry, ops3d.get("ransac_plane"))

Usage

Outlier-robust RANSAC plane fitting.

Sample 3 points → plane normal (cross product of 2 edges) → maximise the inliers with point-plane distance |n·(p-p0)| < thresh → least-squares refit on the final inliers (normal = minor principal axis of the covariance).

Args:

points: (N,3) point cloud.

thresh: point-plane distance threshold for counting as an inlier.

iters: number of RANSAC iterations.

seed: random seed (deterministic).

Returns:

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

and the plane is normal·x + d = 0. inlier_mask=(N,) bool.

Background guides (the physics and conventions behind this op)

• blas_threads_and_memory — Why matrix decompositions are slow — BLAS threads, caches, memory layout

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

Runnable examples (verified samples that actually call this op)

• ransac_prim — py -3.11 examples_3d/ransac_prim.py

Ops the type connects to (they accept primitive as 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

Same category (robust_fit)

ransac_sphere · ransac_line · ransac_cylinder · fit_cone · fit_torus · fit_ellipsoid


*Provenance: ransac_fit.py — 3D operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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