Conformal mapping on images and videos
Project description
Python classes for transformations of pictures and videos (with moviepy) using conformal mappings of the complex plane and hyperbolic tessalations of Poincaré’s disk.
Author : François Coulombeau
Example
In this example, we open an image and build a (∞;6;4;6) hyperbolic tessalation :
import confmap as cm
import numpy as np
im = cm.HyperbolicTiling('./Sources/Reflets.jpg',0,'./Exports/',600,600)
im.transform(sommets=(np.inf,6,4,6),nbit=20,backcolor=[255,255,255])
which leeds to this image :
Installation
ConfMap depends on the Python modules Numpy, Matplotlib and moviepy which will be automatically installed during ConfMap’s installation. The software FFMPEG should be automatically downloaded/installed (by imageio) during your first use of MoviePy (installation will take a few seconds). If you want to use a specific version of FFMPEG, see Moviepy’s documentation.
Installation by hand: download the sources, either from PyPI or, if you want the development version, from GitHub, unzip everything into one folder, open a terminal and type:
$ (sudo) python setup.py install
Installation with pip: if you have pip installed, just type this in a terminal:
$ (sudo) pip install moviepy
Maintainers
Oioi (owner)
Project details
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
File details
Details for the file confmap-1.0.9.tar.gz
.
File metadata
- Download URL: confmap-1.0.9.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dde5b4a7bfe93bb113e5833cebfe58d403b5e0e9611c949956c4c0c8df1d77e |
|
MD5 | 42b38324c54beae2e7a264512c367cdf |
|
BLAKE2b-256 | d268480ae90e62dce323179e165c98ae85144d89c52fed10f27b8e3348b42484 |
File details
Details for the file confmap-1.0.9-py3-none-any.whl
.
File metadata
- Download URL: confmap-1.0.9-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6bd26db92095eca180eaec9577f00632bead0a9238d3a375288a4a0e5b67f55 |
|
MD5 | c3b78489f6180cd496070ada9df948ad |
|
BLAKE2b-256 | 2a248dc4e4775782fcc59a816fc06cc03754f41210921ec10fdb330b9a86b97b |