rle_region op• Data kinds: rle_region → position
• Call: import fullseye as fs; fs.ledger.vol_rle_centroid(region, spacing=None) (to call the implementation directly, import volregion; volregion.vol_rle_centroid(region, spacing=None); from the registry, ops3d.get("vol_rle_centroid"))
Centroid `(z, y, x)` of the region, computed on the runs (no decode).
> The detailed description below is the original text — the summary and the headings are translated.
Each run contributes `n voxels at its row's (z, y)` and mean x
`(start + end - 1) / 2` — the exact arithmetic mean of the member voxel
indices, so it matches the dense centroid to floating-point accuracy.
Pass *spacing* `(sz, sy, sx)` for physical coordinates. An empty region
raises `ValueError`.
返り値: `(z, y, x) の 3 つの float(depth, row, col 順)。spacing` 無しなら
voxel index 単位(index の算術平均そのもの)、`spacing` を渡すと各成分に
`(sz, sy, sx) を掛けた物理座標(mm など、spacing と同じ単位)。spacing` は
長さ 3 の正の有限値、または `spacing_mm 属性を持つ volio.VolumeMeta`。
検証(`ValueError): VolRLE の整合性検査 / run が 0 本 / spacing` が
長さ 3 でない・非正・非有限。
注意: 質量中心ではなく voxel の幾何重心(全 voxel 等重み)。gray 値で重み付けした
重心が欲しい場合は `vol_rle_decode` してから自分で計算する。
• 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.
• rle_region_efficiency — py -3.11 examples_3d/rle_region_efficiency.py
position as input)refine_peak_newton · refine_translation_lk · refine_lm · fuse_to_voxel
rle_region)vol_rle_encode · vol_rle_decode · vol_rle_volume · vol_rle_bbox · vol_rle_union · vol_rle_intersect · vol_rle_difference · vol_rle_components
*Provenance: volregion.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.