A precision 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)
- Uses 32-bit floating point precision for all image processing operations
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:
Metadata
Release files for EquiForge 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| equiforge-0.2.0.tar.gz | 41.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| equiforge-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.2 MB
Release files / equiforge-0.2.0.tar.gz
| Download URL | equiforge-0.2.0.tar.gz |
|---|---|
| Size | 41.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2b3aa475430ac41bb13c5e1d9e7b2662a6ac65a73a071a66fd7bc4dc68e4051
|
|
BLAKE2b-256 checksum How to use checksums |
dc329369bb2ae683d77fcdc10d25044b43e4f2888fafee4e48a42bd8e4c3f7b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2025.
Transparency logRelease files / equiforge-0.2.0-py3-none-any.whl
| Download URL | equiforge-0.2.0-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9422e29bc9dd672165f1e57b05e422dcb3130373d01b77a09ccc65b988449901
|
|
BLAKE2b-256 checksum How to use checksums |
8991b53e98b0a9dfae028c3a7afe2f2b0d0f0c87aee628007de9d10837cb93e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2025.
Transparency log