有哪些算法可用于检测光和阴影及其参数?

发布于 2024-09-18 03:43:20 字数 262 浏览 2 评论 0原文

图片 (不是最好的)

所以我想检测 灯光从哪里来以及灯光的类型是什么。什么算法\框架可以对静态图像做这样的事情?

我提到阴影是因为一般来说,如果您可以将阴影与表面分开,那么您就可以确定灯光类型及其其他参数。

我的意思是一般阴影不仅搜索呈现的图像。

So I have picture (not the best one)

I want to detect where the lights come from and what types of lights are they. What algorithm\framework can do such things with static images?

I mentioned shadows because in general if you can separate a shadow from a surface than you can probably determine light type and other its parameters.

I mean general shadows search not only for presented image.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海蓝天 2024-09-25 03:43:20

从您提供的图像来看,误差来源如此之多,如果训练有素的人类(更不用说算法)在任何计算上都能做得比 ±20% 更好,我会感到惊讶。问题是:

  1. 任何地方都没有一条已知的直线,因为所有东西都是手工凿成的。最好的选择是门口上方的工字梁,但你不知道它的方向。
  2. 图像边缘存在严重的桶形畸变,这是由镜头引起的,是该镜头在变焦和对焦时的特征。如果没有精确校准,您只能猜测失真程度。
  3. 图像相对于它所面对的墙壁是倾斜的,但无论如何,没有一堵墙看起来是那么平面。
  4. 你想知道光的来源。显而易见的主要光线是太阳,但纬度、经度、时间和日期都会影响它。然后是漫反射,但除非你有材料的反照率,否则你只能猜测。

您希望从这张图片中得到什么?通常在进行照明分析时,有人会将不同的、已知反射率的已知参考目标放置在要分析的空间中。使用袖珍快照相机拍摄未知场景确实限制了您的推断范围。

With the image that you presented, there are so many sources of error that I'd be surprised if a trained human, let alone an algorithm could do better than ±20% on any calculations. Here are the problems:

  1. There isn't a known straight line anywhere since everything is hand hewn. The best bet would be the I-beam above the doorway but you don't know it's orientation.
  2. There's heavy barrel distortion in the edges of the image which are introduced by the lens and are characteristic of that lens at that zoom and focus. Without precise calibration of that, you can only guess at the degree of distortion.
  3. The image is skewed with regard to the wall it is facing but none of the walls appear to be all that planar anyway.
  4. You want to know the source of lights. Well the obvious primary light is the sun, but latitude, longitude, time and date all affect that. Then there are the diffuse reflections but unless you have the albedo of the materials you can only guess.

What are you hoping to derive from this image? Usually when doing lighting analysis, someone will put known reference targets of different, known reflectivity in the space to be analyzed. Working from a pocket snapshot camera on an unknown scene really limits what you can extrapolate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文