python贴图_等矩形,立方体贴图和透视图之间转换的Python实现

py360convert是一个纯Python库,用于实现等矩形到立方体贴图以及立方体贴图到等矩形的转换。依赖项包括numpy、scipy和pillow。库提供命令行工具和API,支持矢量化实现,转换速度快。
摘要由CSDN通过智能技术生成

py360convert

Features of this project:

Convertion between cubemap and equirectangular

Equirectangular to planar

Pure python implementation and depend only on numpy and scipy

Vectorization implementation (in most of the place)

c2e takes 300ms and e2c takes 160ms on 1.6 GHz Intel Core i5 CPU

Requirements

numpy

scipy

pillow (for example code to load/save image)

Install

pip install py360convert

Now at everywhere, you can import py360convert or use the command line tool convert360.

Command line examples

You can run command line tool to use the functionality. Please See convert360 -h for detailed. The python script is also an example code to see how to use this as a package in your code.

convert360 --convert e2c --i assert/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值