link_edges — 3D edges op

• Data kinds: voxel → voxel

• Call: import fullseye as fs; fs.ledger.link_edges(edge_mask) (implementation को सीधे call करना हो तो import edges3d; edges3d.link_edges(edge_mask), registry से लेना हो तो ops3d.get("link_edges"))

• Ledger के ज़रिए return value: fullseye.ledger.link_edges(...) केवल घोषित out type voxel का value लौटाता है (मूल function सहायक जानकारी भी लौटाता है)। जो हिस्सा छोड़ दिया गया है उसकी ज़रूरत हो तो fullseye.ledger.link_edges.raw(...) का उपयोग करें, या edges3d.link_edges को सीधे call करें।

• मूल function का return: (linked, n)

उपयोग

edge mask को 26-neighbourhood से connected components में label करता है।

Parameters

edge_mask : (D,H,W) bool

Returns

labels : (D,H,W) int

हर voxel का component label (background = 0, components = 1..n)।

n : int

connected components की संख्या।

Notes

26-connectivity (3x3x3 का पूरा neighbourhood)। टूटे हुए edge टुकड़ों को 1 curve / closed surface के रूप में जोड़ता है, ताकि downstream Hough / chamfer उन्हें component के स्तर पर संभाल सकें।

संदर्भ (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 करते हैं)

• sensor_seg — py -3.11 examples_3d/sensor_seg.py

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

voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa

इसी category के (edges)

gradient3d · canny3d · log_zero_crossings · edge_points


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

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