用于从等矩形全景图中创建预览图像的工具 [英] Tool for creating preview images from equirectangular Panoramas

查看:126
本文介绍了用于从等矩形全景图中创建预览图像的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种工具或库,该工具或库将允许我为等矩形全景图像生成预览图像.我正在使用Pannellum库[ https://pannellum.org] 来展示全景照片,效果很好.但是,我想添加的是一种生成轻量级预览图像以在初始页面加载时显示的方法.我想要一个看起来不变形的小尺寸预览图像.是否存在这样的工具/库/脚本?

I am looking for a tool or library that will allow me to generate a preview image for an equirectangular panoramic image. I am using the pannellum library [https://pannellum.org] to present panoramas, which works great. What I'd like to add, however, is a way to generate lightweight preview images to display on initial page load. I would like to have a small sized preview image that does not look warped. Does such a tool/library/script exist?

谢谢!

戴夫

推荐答案

有些人喜欢将全景图转换为立方体地图,这对Google来说要容易得多.

Some people like to convert panoramas to cube maps, which is a lot easier to google.

我一直在查看 https://github.com/denivip/panorama ,或者如果您希望使用纯JavaScript方法,请访问 https://stackoverflow.com/a/43469036/2471983 整个问题页面以获取大量信息).默认情况下,这两个都将创建所有六个多维数据集面.您可以对其进行编辑,也可以只丢掉另外五张面孔.

I've been looking at https://github.com/denivip/panorama, or also at https://stackoverflow.com/a/43469036/2471983 if you want a pure JavaScript approach (check out that entire question page for lots of info). Both of these will by default create all six cube faces; you can either edit them or just throw out the five extra faces.

一旦有了这张未投影的图像,就可以使用任何喜欢的实用程序来调整其大小.

Once you have this unprojected image, you can resize it using whatever utility you like.

这篇关于用于从等矩形全景图中创建预览图像的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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