三维浮雕创作的算法,利用深度图的图像:在哪里可以找到? [英] 3D-Anaglyph creation algorithm, using depth map image: where to find?

查看:266
本文介绍了三维浮雕创作的算法,利用深度图的图像:在哪里可以找到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个通用的算法来计算红色/慈安浮雕从原图像出发,他的B / W深度图(例如:的 http://www.swell3d.com/2008/07/turn-2d-painting-into-3d-anagl.html

这algorythm的使用,例如,在Photoshop中,但我无法找到一个可读的解释重现它。

感谢

解决方案

一些研究,我发现我一直在寻找的经过。 首先,我readed一些的Photoshop /瘸子教程,介绍如何从两个输入做出的anaglyphs:图像,其灰度深度图。该方法的核心是使用置换工具和深度图作为位移的地图。 其中的一些YouTube的教程: http://www.youtube.com/watch?v=gfYMe_vYhu4

所以,我大概花了GIMP的置换工具的一些文档通过查看此 HTTP: //docs.gimp.org/en/plug-in-displace.html 并直接在工具(该方法是非常相似的提议Asgeir所述一个)的源$ C ​​$角

这让我们从输入产生两个立体图像,通过查看深度图。每一图像的红色和青色通过读当前页 http://3dtv.at/Knowhow/AnaglyphComparison_en计算的.aspx (优化矩阵是最好的)。

然后,将两个图像的一个总和将产生最终的浮雕。谢谢大家。

I'm looking for a generic algorithm to calculate a red/cian anaglyph starting from the original image and his b/w depth map (example: http://www.swell3d.com/2008/07/turn-2d-painting-into-3d-anagl.html)

That algorythm are used, for example, in Photoshop but I can't find a readable explanation to reproduce it.

Thanks

解决方案

After some researches I found what I was looking for. First, I've readed some Photoshop/Gimp tutorials that describes how to make anaglyphs from two inputs: an image and its grayscale depth map. The core of the process is the use of "Displace Tool" and the depth map as a displacement map. One of the several youtube tutorials: http://www.youtube.com/watch?v=gfYMe_vYhu4

So, I took some documentation about Gimp's Displace Tool by looking at this http://docs.gimp.org/en/plug-in-displace.html and directly at the source code of the tool (the method is very similar to the one proposed by Asgeir).

This lets us to produce two stereo images from the input, by looking at the depth map. The red and cyan colors of every image are calculated by reading this page http://3dtv.at/Knowhow/AnaglyphComparison_en.aspx ("Optimized" matrices are the best ones).

Then, the sum of the two images in one will produce the final anaglyph. Thanks everybody.

这篇关于三维浮雕创作的算法,利用深度图的图像:在哪里可以找到?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆