Skip to main content

Conformal mapping on images and videos

Project description

ConfMap page on the Python Package Index

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 :

[tessalation]

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for confmap, version 1.0.9
Filename, size File type Python version Upload date Hashes
Filename, size confmap-1.0.9-py3-none-any.whl (21.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size confmap-1.0.9.tar.gz (15.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page