render op• Data kinds: labels → rgbimage
• Call: import volcolor; volcolor.vol_label_volume_render(labels, axis='z', mode: 'str' = 'front', seed: 'int' = 0, alpha: 'float' = 0.35, background=(0.0, 0.0, 0.0)) (or opsvolcolor.get("vol_label_volume_render"))
A composited projection of the coloured labels, `(H, W, 3)`, built with numpy alone.
> The detailed description below is the original text — the summary and the headings are translated.
*mode*:
• `"front"` ―― 視線方向で最初に当たる非背景ボクセルの色(不透明表示)。
• `"back"` ―― 最後に当たるもの(裏側から見た形)。
• `"alpha" ―― front-to-back の over` 合成(Porter & Duff 1984)。
非背景ボクセルが不透明度 *alpha* を持つとして手前から積む。
奥行きの重なりが出る一方、手前の色は必ず後ろより濃く出る。
**`mode="max" は拒否する**(ValueError`)。RGB をチャネルごとに max
すると、赤成分が部品 A・緑成分が部品 B から来たどの部品の色でもない色が
出るからである。実測(z 方向にずれて重なる 3 枚の板・`(16, 16, 16)`、
seed=0、axis="z"):チャネル別 max の投影 `(16, 16)` は、前景 168 画素の
うち 90 画素でパレットのどの行とも一致しない色を作った。同じ入力に対し
`"front"` は 256 画素すべてがパレットの色である
(`tests/test_volcolor.py::test_channelwise_max_would_invent_colours`)。
*axis* は `"z"/0((H, W, 3) が返る)、"y"/1((D, W, 3)`)、
`"x"/2((D, H, 3)`)。
Raises `ValueError` for an unknown *mode* / *axis*, an *alpha* outside
[0, 1], or a bad label volume.
• 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.
• The canonical algorithm (author, year) and its uses are named in the family usage guide above.
• voxel_labels_color — py -3.11 examples/voxel_labels_color.py
rgbimage as input)—
render)*Provenance: volcolor.py — VOLCOLOR 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.