gaussians_to_voxel — 3D transform op

資料種類:pointsvoxel

呼叫: import fullseye as fs; fs.ledger.gaussians_to_voxel(means, scales, opacities, size, bounds, device='cpu')(要直接呼叫實作,import match3d; match3d.gaussians_to_voxel(means, scales, opacities, size, bounds, device='cpu');從台帳取用則 ops3d.get("gaussians_to_voxel"))

GPU:該運算子有 GPU 路徑(device="cuda")

用法

3DGS(各向異性高斯)→ 密度體素。把每個高斯按 opacity 置於 means,再用平均 scale 平滑。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

近似(等方 splat + 平滑): 厳密な異方共分散ラスタライズは重いので、まず means を opacity 重み

で splat → scale 平均ぶん gaussian 平滑。マッチングの coarse alignment には十分。

引数: `means (N,3) 中心、opacities` は長さ N に reshape されて splat の重みになる

(`points_to_voxel が 1 を足すところに opacity を足す)。scales` は形を問わず

平均値 1 つにまとめ、`σ = mean(scales)/mean(hi − lo)·size`(world 長 → voxel 長)を

平滑幅にする(下限 0.5 voxel。`scales` が空なら σ=1)。異方性・回転は無視される。

`bounds=(lo, hi) は必須(None 不可。_lo_hi` で検証し不正なら ValueError)。範囲外の

中心は端 voxel に clip される。返り値 `(size, size, size) float64、軸順は means` の列順。

opacity の総和はほぼ保存されるが正規化はしない。点群に落とすなら `gaussians_to_points`。

參考(範例資料・文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

transforms_reprpy -3.11 examples_3d/transforms_repr.py

型別可銜接的下一個運算子(可接受 voxel 作為輸入)

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

同類別(transform)

points_to_voxel · mesh_to_voxel · mesh_to_points · depth_to_points · voxel_to_mips · voxel_to_mesh · tsdf_from_depth · signed_distance_field


*Provenance: match3d.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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