polarization op• 数据种类:polsweep → stokes
• 调用:import specularity; specularity.polarization_stokes(images, angles_deg=(0.0, 45.0, 90.0, 135.0), max_violation_frac=0.0)(或 opsspecular.get("polarization_stokes"))
偏振片旋转序列的场景积分 Stokes 矢量。→ (4,),可直接交给 :func:optics.stokes_analyze。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
Stokes parameters are linear in radiance, so the spatial mean of the frames
has a Stokes vector that is the mean of the per-pixel ones — the vector a
non-imaging polarimeter looking at the whole field would report. Fitting
`I(t) = 0.5 (S0 + S1 cos 2t + S2 sin 2t) gives (S0, S1, S2)` directly.
S3 is always exactly 0, and that is a limitation, not a measurement. A
set of linear analysers cannot see circular polarisation; a quarter-wave
plate is needed. The returned vector is therefore the linear part of the
truth, and :func:optics.stokes_analyze will report `handedness="linear"`
for it no matter what the scene actually did. Returning an invented `S3`
would be worse, and returning a 3-vector would break the Stokes contract the
optics family is built on.
The result satisfies that contract by construction — ``S0 >= sqrt(S1^2 +
S2^2 + S3^2)``, i.e. degree of polarisation at most 1 — because the same
non-negativity check that guards :func:polarization_separate is exactly
the condition for it. That is why `optics.stokes_analyze` accepts the
output without a further test.
Raises `ValueError: as :func:polarization_separate`.
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者・年份)与用途见上面的族使用指南。
• specular_photometric — py -3.11 examples/specular_photometric.py
stokes 作为输入)—
polarization)polarization_render · polarization_separate · polarization_dolp_map
*Provenance: specularity.py — SPECULAR 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.