vol_colorize_labels — VOLCOLOR colorize op

Data kinds: labelsrgbvolume

Call: import volcolor; volcolor.vol_colorize_labels(labels, seed: 'int' = 0, background=(0.0, 0.0, 0.0)) (or opsvolcolor.get("vol_colorize_labels"))

Usage

3-D label volume -> an RGB volume, `(D, H, W, 3)` float64.

> The detailed description below is the original text — the summary and the headings are translated.

「切ってから色を付ける」のではなく「色を付けてから切る」ための入口。

ラベル `k の色は :func:vol_label_palette の行 k` そのもので、

`imgio.colorize_labels(labels, seed)` を同じ配列に対して呼んだ結果と

バイト単位で一致する(`tests/test_volcolor.py` が固定)。

切る順序が効くこと自体は :func:vol_label_color_flicker が数える。実測

(16 球・`(24, 48, 48) の参照ファントム、connectivity=26`、seed=0):

スライスごとに色を付け直すと 24 スライス中 20 スライスで少なくとも

1 成分の色が変わり、(成分, スライス) の変化は 108 組中 62 件

16 成分すべてが一度は色を変える。ボリュームで色を付けてから切ると

3 つとも 0。

Raises `ValueError` on a non-3-D, float, or negative label volume, on a label

over :data:MAX_LABELS, or on more than :data:MAX_COLOR_VOXELS voxels.

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.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

voxel_labels_colorpy -3.11 examples/voxel_labels_color.py

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

vol_label_slice_rgb · vol_label_mpr_rgb

Same category (colorize)

vol_label_overlay


*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.