1 Star 0 Fork 0

褚旭 / panorama

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Photo Panorama Converter

This application converts an equirectangular panorama image into 6 cube faces images. The tool might be very handy when you need to prepare a cube faces panorama for some of web panorama viewers (a.e. Panellum).

This tool was developed as part of the PeakVisor service. Please check it out, it is fantastic! Here is the webpage which renders mountain panoramas

How to convert an equirectangular panorama?

Launch the panorama utility with following parameters: -i - equirectangular panorama source -o - output cube faces names -r - edge length of a cube face (optional)

panorama -i ./samples/equirectangular_panorama.jpg -o cube_faces -r 4096

For a test you might take the panoramic photo from the samples directory. It was taken with a Panono 360-degrees camera (dimensions 16384x8192) on the way to the Monte Bregagnino's summit (Lake Como, Italy). Depending on your CPU performance it might take from several seconds to a minute.

Here is a sample webGL panorama viewer based on threeJS (LINK)

How does the conversion work?

For a detailed description of the algorithm (and geometry) behind the tool please refer to this StackOverflow thread. Basically it goes through all the pixels of the target image and calculates the related pixel (or it's approximation) in the source panorama.

Obviously, it decreases the panorama's quality and you'd better avoid this transformation.

Requirements

The program requires the Intel Threading Building Blocks (TBB), libpng, xorg-dev, and libjpeg libaries.

On ubuntu these can be installed with

sudo apt-get install libtbb-dev libpng-dev libjpeg-dev xorg-dev

If you see the following error message:

sh: 1: convert: not found
sh: 1: gm: not found

Then the solution is:

sudo apt-get install imagemagick
sudo apt-get install graphicsmagick (optional)

How to build the panorama converter

Clone the repository with:

git clone

Initialize dependencies:

git submodule init
git submodule update

Check other dependencies (JPG, PNG, X11, Intel TBB). Update paths in the makefile if needed.

Make the panorama tool

make

That's it!

How to use panorama converter as a web service

We're running this panorama converter on some of our servers and if you are interested in using it as a web service then please let me know: denis@denivip.ru

空文件

简介

photo panorama converter 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/chuxu1793/panorama.git
git@gitee.com:chuxu1793/panorama.git
chuxu1793
panorama
panorama
master

搜索帮助