vol_rle_centroid — 3D rle_region op

데이터 종류: rle_regionposition

호출: 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"))

사용법

영역의 무게중심 `(z, y, x)` 를 run 위에서 계산(복호 없음).

> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.

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` してから自分で計算する。

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.

• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.

실행 가능한 예제(이 연산자를 실제로 호출하는 검증된 샘플)

rle_region_efficiencypy -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 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.