slice op• Data kinds: rgbvolume → rgbimage
• Call: import volcolor; volcolor.vol_label_slice_rgb(rgbvol, index: 'int', axis='z') (or opsvolcolor.get("vol_label_slice_rgb"))
Take one RGB cross-section out of a coloured volume (axial / coronal / sagittal).
> The detailed description below is the original text — the summary and the headings are translated.
*axis* は `"z"/"axial"/0((H, W, 3) が返る)、"y"/"coronal"`/1
(`(D, W, 3))、"x"/"sagittal"/2((D, H, 3)`)。**返る 2 軸が
軸ごとに違う**のは `(D, H, W) から 1 軸抜くのだから当然だが、(H, W)` を
期待して受けると縦横が入れ替わった絵が例外なしに出る。3 通りの形は
`tests/test_volcolor.py::test_slice_axes_shapes_and_content` が固定している。
*index* は非負でなければならない。`-1` を「最後の断面」として黙って
受けると、範囲外の指定が最後の断面として通ってしまう(切り出す位置が
1 箇所ずれた図は、機械にも目にも「壊れている」と見えない)。
Returns a contiguous float64 `(..., 3) copy. Raises ValueError` for a bad
volume, an unknown *axis*, or an out-of-range / negative *index*.
• 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)—
slice)*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.