synthesize_fringes — 3D structured_light op

• 資料種類:image2d → images

• 呼叫: import fullseye as fs; fs.ledger.synthesize_fringes(height, n_steps=4, freq=1.0, phase_gain=1.0, bias=0.5, amplitude=0.5, axis=1, noise=0.0, seed=None, return_phase=False)(要直接呼叫實作,import fringe; fringe.synthesize_fringes(height, n_steps=4, freq=1.0, phase_gain=1.0, bias=0.5, amplitude=0.5, axis=1, noise=0.0, seed=None, return_phase=False);從台帳取用則 ops3d.get("synthesize_fringes"))

• 經台帳呼叫的回傳值: fullseye.ledger.synthesize_fringes(...) 只回傳宣告的 out 型別 images 的值(底層函式還會回傳輔助資訊)。需要被捨棄的部分時,請用 fullseye.ledger.synthesize_fringes.raw(...),或直接呼叫 fringe.synthesize_fringes。

用法

由已知 height map 合成 N 步相移條紋影像序列(用於測試/範例生成)。

模型:總相位 φ(x,y) = φ_carrier + phase_gain·height。載波 φ_carrier 是橫越視野的線性斜坡(freq 個週期)。各幀為 I_n = bias + amplitude·cos(φ - δ_n), δ_n = 2πn/N。在此符號約定下,wrapped_phase(...) 可原樣還原總相位 φ。

height: 2D 陣列(被測物的高度場,任意單位)。

n_steps: 相移張數 N(>=3)。

freq: 橫越視野寬度的載波週期數(條紋數)。0 表示無載波(只有 height)。

phase_gain: 高度→相位的轉換增益(rad/單位)。對應解碼端的校正 k = 1/phase_gain。

bias: 平均輝度 a(預設 0.5)。

amplitude: 條紋振幅 b(預設 0.5)。bias±amplitude 落在 [0,1] 內較為自然。

axis: 載波方向(1 = 沿行方向 x 的預設值,0 = 列方向 y)。

noise: 附加高斯雜訊的標準差(0 表示無雜訊)。

seed: 雜訊用亂數種子。

return_phase: True 時回傳 (images, total_phase)(用於測試、除錯)。

回傳值:(N, H, W) float 陣列(截斷到值域 [0,1])。return_phase=True 時也回傳相位。

背景知識指南(該運算子背後的物理與規範)

• depth_sensors — 深度感測器知識 —— 測距原理、實機數值、缺測的表現

參考(範例資料、文獻)

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

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

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

• structured_light — py -3.11 examples_3d/structured_light.py

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

fuse_to_voxel · photometric_stereo · wrapped_phase · graycode_decode · decode_fringe · carve · visual_hull

同類別(structured_light)

wrapped_phase · unwrap_phase_2d · graycode_decode · decode_fringe · absolute_phase · triangulate_column


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

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