optics op• 資料種類:vector × vector → vector
• 呼叫: import fullseye as fs; fs.ledger.normal_from_reflection(incident, reflected)(要直接呼叫實作,import match3d; match3d.normal_from_reflection(incident, reflected);從台帳取用則 ops3d.get("normal_from_reflection"))
由入射+反射恢復鏡面法線(deflectometry)。n ∝ (r − d),朝與入射相反的方向。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
既知パターンの反射を観測 → 面法線 → 積分して鏡面形状。鏡面(反射)物体の形状計測の要。
`incident(面へ向かう入射方向)と reflected`(面から出る反射方向)を単位化し、
`n = unit(r − d) を **n·d <= 0`(入射に逆らう=入射側外向き)** になるよう符号を決めて
返す(単位ベクトル)。`r == d なら零ベクトル。最後の軸をベクトルとするので (N,3)`
バッチも通る(符号判定は全体の内積和で 1 回だけ行う)。
用途: 既知パターンの反射像から画素ごとに法線を作り(法線マップ)、`integrate_normals` で
高さに積分、`render_shaded で見た目を再現、reflect` で検算。
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• sensor_seg — py -3.11 examples_3d/sensor_seg.py
vector 作為輸入)fuse_to_voxel · reflect · refract · cast_shadow · shadow_raycast · carve_look_at · sample_surface
optics)reflect · refract · fresnel_reflectance · snell_angle
*Provenance: match3d.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.