dichromatic_render — SPECULAR reflectance op

資料種類:normalmaprgbimage

呼叫:import specularity; specularity.dichromatic_render(normals, albedo_rgb=(0.8, 0.55, 0.35), light=(0.3, 0.2, 1.0), illuminant_rgb=(1.0, 1.0, 1.0), view=(0.0, 0.0, 1.0), specular=0.25, model='blinn_phong', shininess=32.0, roughness=0.3, f0=0.04, ambient=0.0)(或 opsspecular.get("dichromatic_render"))

用法

二色性模型的正向:算繪一個已知高光,以便據此檢驗分離結果。→ (H, W, 3)。

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

`I = albedo_rgb * max(n.l, 0) + specular * lobe(n) * illuminant_unit`, the

body term coming straight from :func:photometric.render_lambertian (called,

not re-implemented, so the two modules cannot drift apart in convention) and

the interface term carrying the illuminant colour, which is what makes

the image obey the dichromatic model exactly.

*albedo_rgb* may be a single `(3,)` colour — the single-material case that

:func:specular_diffuse_split handles without help — or an `(H, W, 3)`

map, which is the textured case that needs `body_rgb` passed to the split.

*model* selects the lobe: `"blinn_phong"` (*shininess*) or

`"microfacet"` (*roughness*, *f0*). Both are available on purpose: the

separation operators must be blind to the lobe shape, and swapping the model

is how that is tested rather than asserted.

This is a shading model, not light transport. No interreflection, no

cast shadow, no subsurface term, no occlusion between pixels — the same

boundary :mod:visiondesign draws. Its purpose is a synthetic image whose

decomposition is known exactly.

Raises `ValueError`: geometry problems as in

:func:brdf_blinn_phong; *albedo_rgb* is neither `(3,)` nor

`(H, W, 3)`; *specular* or *ambient* is negative, non-finite, a string or

a bool; *model* is not in :data:BRDF_MODELS.

詳細使用指南

specular_photometric 族使用指南

參考(範例資料・文獻)

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

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

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

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

specular_photometricpy -3.11 examples/specular_photometric.py

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

specular_diffuse_split · specular_coefficient_map · specular_free_transform · illuminant_from_dichromatic_planes

同類別(reflectance)

brdf_blinn_phong · brdf_microfacet


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

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