把全景图变成鱼眼图。方法一部分是自己研究的,一部分是参考学妹街景合成鱼眼照片的方法。
需要使用的软件是PTGui。是个收费软件,价格还不便宜。操作一下,安装完后就可以开始合成鱼眼图了。
加载图像
打开软件后是这样的界面。
将我们自己有的全景图加载进来。老实说,它可以加载多张是可以进行照片拼接合成全景图,但是我们自己有的话,一张就可以了。
打开全景图编辑器
可以使用快捷键CTRL+E,也可以点击菜单中的工具-全景图编辑器。于是就会出现一个类似下图的窗口。
如果显示的形式不是这样的,需要在原来的窗口的全景图设置标签里选择圆周鱼眼。
视场可以自己输入定义,也可以在全景图编辑器窗口内再调整。我比较习惯160*160。
调整想要生成鱼眼图的角度
在全景图编辑器窗口里,鼠标左键点击拖拽,到自己想要的角度就可以啦。以及,鼠标右键可以进行旋转,但不怎么用。
生成鱼眼图
在原来的窗口的创建全景图标签里,可以设置一些参数(应该大家都看得懂),特别提醒注意输出文件的路径,别到时候输出了,不知道上哪找。
然后就可以点击创建全景图了。
生成的图片大概长这样。