vol_tiled_map — 3D domain op

데이터 종류: voxelvoxel

호출: import fullseye as fs; fs.ledger.vol_tiled_map(vol, fn, tile=64, overlap=8)(구현을 직접 호출하려면 import volops; volops.vol_tiled_map(vol, fn, tile=64, overlap=8), 원장에서 가져오려면 ops3d.get("vol_tiled_map"))

사용법

형상을 바꾸지 않는 볼륨 op 를 겹치는 z 슬래브로 나눠 적용(피크 사용량 억제).

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

working memory is bounded by the slab — not the volume.

The third leg of the memory family: :func:vol_crop_domain shrinks *where*

you compute, :mod:volregion shrinks *what you keep*, and this bounds *how

much lives in RAM at once*. Each slab `vol[z0-overlap : z1+overlap]` is

run through *fn* and only the core `[z0:z1)` of the result is kept, so a

volume far above an operator's comfortable size streams through in

constant-memory pieces (measured: peak working set of a Gaussian drops with

the slab size while the output stays exact — see the test).

Correctness contract (the honest part): the result equals `fn(vol)`

exactly only for *local* operators whose spatial footprint along z is at

most *overlap* voxels on each side (a Gaussian of sigma s with scipy's

default truncation needs `overlap >= round(4 * s)`; a morphology with a

k-voxel structuring element needs `overlap >= k`). A *global* operator

(Otsu, normalisation, anything that looks at the whole histogram) is

silently WRONG under tiling — this function cannot detect that, so it is

documented instead: do not tile global operators.

Parameters: *fn* is any callable mapping a `(d, H, W)` float64 volume to

an array of the same shape (e.g. `lambda v: vol_gradient_magnitude(v)`).

*tile* is the slab thickness (>= 1), *overlap* the per-side context

(>= 0). A slab result of the wrong shape raises `ValueError` immediately

(fail-closed — a shape-changing fn would silently corrupt the assembly).

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

• 샘플 데이터 카탈로그(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

타입이 이어지는 다음 연산자(voxel 를 입력으로 받는 것)

voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa

같은 카테고리(domain)

vol_reduce_domain · vol_bounding_box · vol_crop_domain · vol_uncrop


*Provenance: volops.py — 3D 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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