carve — 3D space_carving op

Data kinds: imagesvoxel

Call: import fullseye as fs; fs.ledger.carve(silhouettes: 'Sequence[np.ndarray]', Ks: 'Sequence[np.ndarray]', Rs: 'Sequence[np.ndarray]', ts: 'Sequence[np.ndarray]', bounds: 'Bounds', res: 'int') -> 'np.ndarray' (to call the implementation directly, import visualhull; visualhull.carve(silhouettes: 'Sequence[np.ndarray]', Ks: 'Sequence[np.ndarray]', Rs: 'Sequence[np.ndarray]', ts: 'Sequence[np.ndarray]', bounds: 'Bounds', res: 'int') -> 'np.ndarray'; from the registry, ops3d.get("carve"))

Usage

Discretise `bounds` into res^3 voxels and keep those that project inside every silhouette (space carving).

> The detailed description below is the original text — the summary and the headings are translated.

各 voxel 中心を全カメラ `mX_cam = R_m X + t_m` で射影し、depth>0・画像内・

`silhouettes[m]` が前景、を すべて 満たす voxel だけ keep する(視錐の共通部分)。

シルエット/カメラは長さ M のリスト。

Parameters

----------

silhouettes : list of (H, W) bool array 各カメラの前景マスク(M 個)。

Ks, Rs, ts : list 各カメラの内部パラメータ・回転・並進(各 M 個)。

bounds : ((xmin,xmax),(ymin,ymax),(zmin,zmax)) 彫刻する直方体領域。

res : int 各軸の voxel 分割数(voxel 総数 = res^3)。

Returns

-------

(res, res, res) bool ndarray 占有 voxel。indexing='ij' で軸は (x, y, z)。

`vox[i,j,k] の中心は (xmin+(i+.5)dx, ymin+(j+.5)dy, zmin+(k+.5)dz)`。

Background guides (the physics and conventions behind this op)

blender_interop — Blender との併用 — 形を作って fullseye で測る(軸・単位・正解データの罠)

References (sample data, literature)

• 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.

Runnable examples (verified samples that actually call this op)

space_carvingpy -3.11 examples_3d/space_carving.py

Ops the type connects to (they accept voxel as input)

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

Same category (space_carving)

visual_hull · synthesize_silhouette · carve_look_at


*Provenance: visualhull.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.