robust_fit op• Data kinds: points → primitive
• Call: import fullseye as fs; fs.ledger.fit_cone(points) -> 'dict' (implementation को सीधे call करना हो तो import fit_primitives_ext; fit_primitives_ext.fit_cone(points) -> 'dict', registry से लेना हो तो ops3d.get("fit_cone"))
point cloud पर infinite cone fit करता है और {apex, axis, half_angle, residual} लौटाता है।
meridian plane में point-से-generatrix की orthogonal distance a·sinα − ρ·cosα (a = axial component, ρ = radius, α = half-angle) को scipy.optimize.least_squares से minimise किया जाता है। प्रारंभिक मान के लिए PCA के 3 principal axes में से हर एक को axis candidate माना जाता है और axial component t के सापेक्ष radius ρ का linear regression ρ = m·t + b लिया जाता है (half-angle = atan(m), apex = axis पर वह point जहाँ ρ 0 होता है, t = -b/m)। सबसे छोटे residual वाला candidate रखा जाता है। axis की दिशा को इस तरह normalise किया जाता है कि "apex से दूर जाने पर ρ बढ़े (+ दिशा में खुले)"।
Args:
points: (N,3) point cloud (कम से कम 6 points)।
Returns:
dict: {"apex": (3,), "axis": (3,), "half_angle": float, "residual": float}।
axis unit axis (खुलने की दिशा) है, half_angle half-angle [rad], और residual point-surface distance का RMS।
Raises:
ValueError: गलत shape / कम points / half-angle ~0 (cylinder में degenerate) आदि पर fail-closed।
• blas_threads_and_memory — Matrix decompositions धीमे क्यों हैं — BLAS threads, caches, memory layout
• 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 के स्रोत।
• fit_primitives_ext — py -3.11 examples_3d/fit_primitives_ext.py
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
robust_fit)ransac_plane · ransac_sphere · ransac_line · ransac_cylinder · fit_torus · fit_ellipsoid
*Provenance: fit_primitives_ext.py — 3D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.