A toolkit for equirectangular image processing and conversions.
Project description
A performant toolkit for equirectangular image processing and conversions
Features
- Convert perspective images to equirectangular projection (
pers2equi) - Convert equirectangular images to perspective view (
equi2pers) - GPU acceleration with CUDA (optional)
Installation
Prerequisites
- Python 3.8 or later
- numpy
- numba
- Pillow
Using pip:
pip install equiforge
CUDA GPU Support
To enable CUDA GPU support, install the latest graphics drivers from NVIDIA for your platform. Then install the CUDA Toolkit package.
For CUDA 12, cuda-nvcc and cuda-nvrtc are required:
$ conda install -c conda-forge cuda-nvcc cuda-nvrtc "cuda-version>=12.0"
Example Usage
from equiforge import pers2equi
# Convert perspective image to equirectangular
equi_image = pers2equi(
'input.jpg',
output_height=2048,
fov_x=90.0,
yaw=0.0,
pitch=0.0,
roll=0.0
)
from equiforge import pers2equi
# Convert equirectangular image to perspective view
pers_image = equi2pers(
'equirectangular.jpg',
output_width=1920,
output_height=1080,
fov_x=90.0,
yaw=45.0,
pitch=15.0,
roll=0.0
)
Documentation
For more examples and detailed documentation, see the Jupyter notebooks included in the repository.
Acknowledgements:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file equiforge-0.1.2.dev0.tar.gz.
File metadata
- Download URL: equiforge-0.1.2.dev0.tar.gz
- Upload date:
- Size: 41.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
401d650a40702f93db0dfac5b7f4e80913d50e7eae78272052e76bc052faca7e
|
|
| MD5 |
fb02bdcc4cf3e5bda871696dd5ce34dd
|
|
| BLAKE2b-256 |
f8b1853c7ba08f225ad10326d5d92a7eb922b829ae1e3a97256b20352d9cc257
|
Provenance
The following attestation bundles were made for equiforge-0.1.2.dev0.tar.gz:
Publisher:
upload-python-package-pypi.yml on MikkelKappelPersson/EquiForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
equiforge-0.1.2.dev0.tar.gz -
Subject digest:
401d650a40702f93db0dfac5b7f4e80913d50e7eae78272052e76bc052faca7e - Sigstore transparency entry: 197262925
- Sigstore integration time:
-
Permalink:
MikkelKappelPersson/EquiForge@f6643d3885823492a87226aedd0feb2bb963b1bf -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MikkelKappelPersson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-python-package-pypi.yml@f6643d3885823492a87226aedd0feb2bb963b1bf -
Trigger Event:
release
-
Statement type:
File details
Details for the file equiforge-0.1.2.dev0-py3-none-any.whl.
File metadata
- Download URL: equiforge-0.1.2.dev0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b233897227701f4037b63cfc8803daedfed0abea7120e05afe993ccb2ebea87
|
|
| MD5 |
49be064b8eb08abd7bd167962236f9a7
|
|
| BLAKE2b-256 |
fc46b742cca6f263e3fa6cf3ac76df976125c75a54f8d2a1bd04a2aca94ee369
|
Provenance
The following attestation bundles were made for equiforge-0.1.2.dev0-py3-none-any.whl:
Publisher:
upload-python-package-pypi.yml on MikkelKappelPersson/EquiForge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
equiforge-0.1.2.dev0-py3-none-any.whl -
Subject digest:
5b233897227701f4037b63cfc8803daedfed0abea7120e05afe993ccb2ebea87 - Sigstore transparency entry: 197262928
- Sigstore integration time:
-
Permalink:
MikkelKappelPersson/EquiForge@f6643d3885823492a87226aedd0feb2bb963b1bf -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MikkelKappelPersson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-python-package-pypi.yml@f6643d3885823492a87226aedd0feb2bb963b1bf -
Trigger Event:
release
-
Statement type: