vol_nearest_label — 3D medial op

• Data kinds: voxel → voxel

• Call: import fullseye as fs; fs.ledger.vol_nearest_label(vol_labels, spacing=None) (to call the implementation directly, import volops; volops.vol_nearest_label(vol_labels, spacing=None); from the registry, ops3d.get("vol_nearest_label"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

零 voxel に最近の非零ラベルを配ったラベル体積 `(D, H, W)(ラベルのボロノイ分割、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]

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)

• nearest_seed_partition — py -3.11 examples_3d/nearest_seed_partition.py

Ops the type connects to (they accept voxel as input)

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

Same category (medial)

distance_ridge · skeletonize_vol · medial_axis_points · topology_signature · medial_match · skeleton_junctions3d · skeleton_endpoints3d · skeleton_prune3d


*Provenance: volops.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.