fullseye

camera_rays — OPTICS scene op

使い方

カメラ dict → 全画素の光線 (origins (H·W, 3), directions (H·W, 3))。

方向は単位ベクトル、原点はすべて視点。画素 (u, v) は行優先で並ぶので reshape(height, width, 3) で像に戻せる。K の逆写像で作っているため、 交点を K で再投影すると元の画素に厳密に戻る(往復誤差 < 1e-9)。

ファミリ共通の入力契約(fail-closed)

optics の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(points を入力に取れる)

refract_rays · reflect_rays · trace_rays · illumination_visibility · env_studio · env_lightbox

同カテゴリ(scene)

scene_material · scene_plane · scene_sphere · scene_box · scene_cylinder · surface_defect · surface_finish · random_defects


Provenance: optscene.py — OPTICS operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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