synthesize_fringes — 3D structured_light op

資料種類:image2dimages

呼叫: 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_lightpy -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.