dichromatic op• 数据种类:rgbimage → image2d
• 调用:import specularity; specularity.specular_coefficient_map(image_rgb, illuminant_rgb=(1.0, 1.0, 1.0), body_rgb=None, max_rank_ratio=0.1, max_negative_frac=0.02)(或 opsspecular.get("specular_coefficient_map"))
二色性模型中标量的界面(镜面)系数。→ (H, W)。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
The same decomposition as :func:specular_diffuse_split, returning the
scalar `m_s(x) instead of the coloured image m_s(x) * G`. That scalar
is what an inspection routine thresholds: it is the amount of light the
surface reflected *as a mirror does*, in the units of the input radiance,
and it is zero wherever the surface behaved as a Lambertian body.
`specular_coefficient_map(...) * illuminant_unit` equals the second return
value of :func:specular_diffuse_split exactly, by construction — the two
operators share one core.
Arguments, guards and honest limits are identical to
:func:specular_diffuse_split — including the fact that the two guards
bound gross violations only.
Raises `ValueError`: exactly the same conditions as
:func:specular_diffuse_split (invalid image, invalid illuminant,
identically zero image, body colour parallel to the illuminant, either
guard firing, fewer than 3 pixels on the uniform-body route, invalid
*body_rgb*).
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者・年份)与用途见上面的族使用指南。
• specular_photometric — py -3.11 examples/specular_photometric.py
image2d 作为输入)dichromatic)specular_diffuse_split · specular_free_transform · illuminant_from_dichromatic_planes
*Provenance: specularity.py — SPECULAR 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.