medial op• 資料種類:voxel → voxel
• 呼叫: import fullseye as fs; fs.ledger.vol_nearest_label(vol_labels, spacing=None)(要直接呼叫實作,import volops; volops.vol_nearest_label(vol_labels, spacing=None);從台帳取用則 ops3d.get("vol_nearest_label"))
把最近的非零標籤分配給零 voxel 的標籤體積 (D, H, W)(標籤的 Voronoi 分割,voxel)。
輸入為整數標籤(vol_label / vol_rle_components 的輸出,0 = 未指派)。每個 0 voxel 依物理距離(spacing) 取得最近的非零 voxel 的標籤,非零 voxel 維持不變。用於從 EM 的分割片段或骨架的分支標籤中切出「該分支所支配的體積」(各分支的體積、壁厚)。非整數標籤會被拒絕(不會四捨五入成別的標籤),連 1 個非零都沒有時拋出 ValueError。回傳 int64。
>>> L = np.zeros((1, 1, 7)); L[0, 0, 0] = 1; L[0, 0, 6] = 2
>>> vol_nearest_label(L)[0, 0].tolist()
[1, 1, 1, 1, 2, 2, 2]
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• nearest_seed_partition — py -3.11 examples_3d/nearest_seed_partition.py
voxel 作為輸入)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_endpoints3d · skeleton_prune3d
*Provenance: volops.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.