rle_region op• 数据种类:rle_region → position
• 调用: import fullseye as fs; fs.ledger.vol_rle_centroid(region, spacing=None)(要直接调用实现,import volregion; volregion.vol_rle_centroid(region, spacing=None);从台账取用则 ops3d.get("vol_rle_centroid"))
在 run 上计算区域的重心 `(z, y, x)`(不解码)。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
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` してから自分で計算する。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• rle_region_efficiency — py -3.11 examples_3d/rle_region_efficiency.py
position 作为输入)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 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.