points_to_voxel — 3D transform op

데이터 종류: pointsvoxel

호출: import fullseye as fs; fs.ledger.points_to_voxel(points, size, bounds=None, device='cpu', smooth=0.0)(구현을 직접 호출하려면 import match3d; match3d.points_to_voxel(points, size, bounds=None, device='cpu', smooth=0.0), 원장에서 가져오려면 ops3d.get("points_to_voxel"))

GPU: 이 연산자는 GPU 경로가 있습니다(device="cuda")

사용법

점군 (N,3) → 밀도 voxel (size³). scatter_add 로 splat, 선택적으로 가우스 평활.

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

bounds=(lo,hi) を与えれば複数雲を同一格子に載せられる(=マッチング前提)。

手順: 各点を `idx = floor((p − lo)/(hi − lo)·(size − 1))` で整数格子に落とし、その voxel に

1 を加算する(値 = その voxel に落ちた点の個数)。`smooth > 0 なら σ=smooth`(voxel 単位)

の gaussian を 3 軸分離 conv で掛ける(半径 `max(1, int(4σ + 0.5))`、端は replicate)。

出力の軸順は 点の列の順そのまま(`points[:, 0]` → 軸 0)で、(depth,row,col) への

並べ替えはしない。

• `bounds: (lo, hi)` の 3 次元ベクトル 2 本。None なら点群自身の min/max(雲ごとに

格子が変わるので、2 つの雲を比べるときは必ず同じ bounds を渡す)。長さ 3 でない・非有限・

`hi <= lo の軸があると ValueError(tsdf 系の ((xmin,xmax),...)` 流儀は長さ 2 として拒否)。

• 範囲外の点は捨てずに 端の voxel へ clip される(端に偽の密度が溜まる)。切り落としたい

なら事前に点群側で除く。

• `size: 一辺の voxel 数。hi − lo` が 0 の軸は 1e-9 に置換されるだけで警告しない。

• 空の点群で bounds=None は numpy の min が例外を出す。

• 返り値: `(size, size, size)` float64 numpy(device で計算しても CPU に戻す)。値は個数

(平滑後は個数の重み分布)で正規化はしない。

後段: `match_points_ncc / signed_distance_field / voxel_to_mesh` の入力に。

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

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

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

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

sh_descriptor_retrievalpy -3.11 examples_3d/sh_descriptor_retrieval.py

shape_desc_posepy -3.11 examples_3d/shape_desc_pose.py

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

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

같은 카테고리(transform)

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

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