fullseye

sfp_dolp_model — OPTICS shape_from_polarization op

使い方

Degree of linear polarisation of reflected (specular) or emitted (diffuse) light versus zenith angle, from the Fresnel equations.

zenith_deg is the angle between the surface normal and the viewing direction, in degrees, 0 <= zenith <= 90 (a scalar or an array of any shape — an (H, W) zenith map gives an (H, W) DoLP map).

model="specular": (R_s - R_p) / (R_s + R_p) for light reflected off a dielectric of index refractive_index. It rises from 0 at normal incidence to exactly 1 at Brewster’s angle atan(n) (R_p = 0) and falls back to 0 at grazing incidence — so one DoLP value has two zenith angles.

model="diffuse": (T_p - T_s) / (T_p + T_s) for light scattered inside the body and refracted out through the surface. It rises monotonically from 0 to (n^2 - 1)/(n^2 + 1) at 90 degrees (0.385 for n = 1.5) — weaker, but one value has one angle.

Returns a float64 array of the input’s shape (a 0-d array for a scalar).

Raises ValueError: zenith outside [0, 90] or non-finite; refractive_index not a finite real > 1; unknown model.

ファミリ共通の入力契約(fail-closed)

optics の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(image2d を入力に取れる)

fraunhofer_pattern · pupil_psf · pupil_blur · psf_to_mtf · edge_spread · veiling_glare_index · emva_pair_statistics · emva_defect_pixels

同カテゴリ(shape_from_polarization)

dolp_to_zenith · aolp_to_azimuth · sfp_render · sfp_normals · sfp_disambiguate · sfp_estimate_index · sfp_height


Provenance: sfpolar.py — OPTICS operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

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