structured_light op• 資料種類:images → image2d
• 呼叫: import fullseye as fs; fs.ledger.wrapped_phase(images) -> 'np.ndarray'(要直接呼叫實作,import fringe; fringe.wrapped_phase(images) -> 'np.ndarray';從台帳取用則 ops3d.get("wrapped_phase"))
由 N 步相移條紋影像序列求 wrapped phase (-π, π]。
> 以下的詳細說明為原文 —— 摘要與標題已翻譯。
標準 N-step 公式 φ = atan2(Σ_n I_n sin(2πn/N), Σ_n I_n cos(2πn/N))。N >= 3 の等間隔位相シフトを
仮定。返り値は各画素の巻き込み位相(-π,π] の 2D 配列。
images: 長さ N のシーケンス(各 2D [0,1] 画像)または (N, H, W) 配列。
計算: 位相シフト量を等間隔 `δ_n = 2πn/N(n = 0..N-1`)とし、
`s = Σ_n I_n sin δ_n、c = Σ_n I_n cos δ_n を tensordot` で取って
`np.arctan2(s, c)。I_n = a + b cos(φ - δ_n) のモデル(synthesize_fringes`
と同じ符号規約)なら `φ が符号反転なしで戻る。平均輝度 a` は消えるので
バイアスの影響を受けない。
入力と検証(`ValueError): None / 3-D (N, H, W)` に変換できない /
`N < 3 / NaN・Inf を含む。値域 [0, 1]` は前提であって検査はしない(範囲外
でも計算は通る)。
返り値: `(H, W) float64、値域 (-π, π]。s = c = 0` の画素(縞が無い・
変調ゼロ)は `arctan2(0, 0) = 0` を返し、エラーにも NaN にもならない —
信頼できる画素を選ぶには `modulation`(同モジュールの関数)で変調度を見る
(`decode_fringe の min_modulation` がそれを行う)。
注意: 位相シフト量が等間隔でない・枚数と順序が合っていない画像列を渡すと、
エラーにならず「もっともらしく間違った」位相が出る。次段は
`unwrap_phase_2d(空間展開)か absolute_phase`(粗い絶対位相で次数確定)。
• depth_sensors — 深度センサの知識 — 測距原理・実機の値・欠測の出方
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• structured_light — py -3.11 examples_3d/structured_light.py
• structured_light_scan — py -3.11 examples_3d/structured_light_scan.py
image2d 作為輸入)fuse_to_voxel · fit_poly_surface · eval_poly_surface · surface_form_error · background_flatten · polar_unwrap · fit_zernike · matcap_shade
structured_light)unwrap_phase_2d · graycode_decode · decode_fringe · synthesize_fringes · absolute_phase · triangulate_column
*Provenance: fringe.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.