medial op• Data kinds: voxel → voxel
• Call: import fullseye as fs; fs.ledger.skeleton_endpoints3d(vol) (to call the implementation directly, import medial; medial.skeleton_endpoints3d(vol); from the registry, ops3d.get("skeleton_endpoints3d"))
Return the end points of a 3-D skeleton (at most one skeleton voxel in the 26-neighbourhood) as a voxel mask.
> The detailed description below is the original text — the summary and the headings are translated.
孤立 voxel(次数 0)も端点に数える。2D の r2_endpoints_skeleton の 3D 版。
手順: `_ensure_skeleton` で入力を bool 化し、6 近傍がすべて前景の interior voxel
があれば `skeletonize_vol` で細線化してから、3x3x3 全 1 カーネル(中心 0、
`mode="constant"` で外側 0)の畳み込みで各 voxel の 26 近傍にある骨格 voxel 数
(次数)を数え、`skel & (次数 <= 1)` を返す。volume の縁にある骨格 voxel は、
外側が 0 扱いなので枝がそこで途切れていれば端点になる。
返り値: 入力と同形の bool 配列(端点 = True)。前景が無ければ全 False。
`np.argwhere で (z, y, x) 座標に、.sum()` で端点数になる。
検証(`ValueError`): 3-D でない・空配列・float で NaN/Inf を含む入力。
細線化が必要で scikit-image が無い環境では `ImportError`。
注意:
• 端点は各枝の末端で厳密だが、ヒゲ(細線化が作る短い枝)の先端も端点に数える。
構造の端だけ欲しければ先に `skeleton_prune3d` で刈る。
• 閉ループだけの骨格(輪)は端点 0 個。
• 数だけ欲しいなら `topology_signature が endpoints / isolated` を
分けて返す。
• 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.
• medial_topology — py -3.11 examples_3d/medial_topology.py
voxel as input)voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa
medial)distance_ridge · skeletonize_vol · medial_axis_points · topology_signature · medial_match · skeleton_junctions3d · skeleton_prune3d · skeleton_branches3d
*Provenance: medial.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.