polarization_dolp_map — SPECULAR polarization op

資料種類:polsweepimage2d

呼叫:import specularity; specularity.polarization_dolp_map(images, angles_deg=(0.0, 45.0, 90.0, 135.0), max_violation_frac=0.0)(或 opsspecular.get("polarization_dolp_map"))

用法

逐像素的線偏振度。→ [0, 1] 的 (H, W)。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

`sqrt(S1^2 + S2^2) / S0`, from the same sinusoid fit as

:func:polarization_separate. It answers the question that decides whether

a polariser is worth mounting at all: 1 means the light at that pixel is

fully linearly polarised and a crossed analyser extinguishes it completely,

0 means the polariser will only cost you a stop of exposure.

Being a ratio, it is invariant to exposure: scaling every frame by 1e-4,

1e4 or 1e8 moves it by at most 3.9e-16 (measured), which is what makes it

comparable across a production line where the lamps age. Not *bit*-

identical — the least-squares fit rounds differently at a different scale —

and the difference between "invariant" and "bit-identical" is the kind of

claim this library measures rather than asserts.

Pixels with zero total radiance have no degree of polarisation (every ratio

would be 0/0) and are returned as 0.0 rather than as NaN; that is a

convention, and it is stated here because a NaN spreading into a

thresholding routine is exactly the silent failure this library refuses.

Raises `ValueError: as :func:polarization_separate`.

詳細使用指南

specular_photometric 族使用指南

參考(範例資料・文獻)

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

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

• 演算法的正典(作者・年份)與用途見上面的族使用指南

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

poc_polarization_specularpy -3.11 examples/poc_polarization_specular.py

specular_photometricpy -3.11 examples/specular_photometric.py

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

polarization_render

同類別(polarization)

polarization_render · polarization_separate · polarization_stokes


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

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