An open API service indexing awesome lists of open source software.

https://github.com/automata/tri-delaunay

Generative paintings by Delaunay triangulation
https://github.com/automata/tri-delaunay

Last synced: 3 months ago
JSON representation

Generative paintings by Delaunay triangulation

Awesome Lists containing this project

README

        

tri-delaunay
============

Generative paintings by Delaunay triangulation.

![Frans Hals](http://farm8.staticflickr.com/7416/9297795694_55253dc0a3_b.jpg)

Presented at SIFISC 3 (2013) at IFSC/USP as:

Pinturas generativas por tesselação de Delaunay. Estudo #4
----------------------------------------------------------

Imagens de pinturas originais dos movimentos Barroco e Moderno foram
segmentadas. Coordenadas de pontos pertencentes a esses segmentos foram dadas
como entrada para o algoritmo de tesselação de Delaunay. O algoritmo cria uma
malha a partir da triangulação das coordenadas dadas, sem cruzamentos de
arestas. A cor de cada triângulo da malha equivale à cor média do segmento da
pintura original.

All generated paintings ([the whole set](http://www.flickr.com/photos/auto_mata/sets/72157634660390040/)):

Details of the exposition:

![Detail of the exposition](http://farm8.staticflickr.com/7372/12848882394_d90d52625a_o.jpg)
![Detail of the exposition](http://farm8.staticflickr.com/7326/12848533133_6882bebd1a_o.jpg)
![Detail of the exposition](http://farm3.staticflickr.com/2871/12848880354_dd54c844eb_b.jpg)

# Installation

At a Linux workstation:

sudo apt-get install python python-numpy python-matplotlib python-setuptools git
git clone https://github.com/scikit-image/scikit-image.git
cd scikit-image
sudo python setup.py install
cd ..

git clone https://github.com/automata/tri-delaunay.git
cd tri-delaunay

# Usage

To generate a painting from any PNG file:

python tri.py foo.png

It will generate ''foo_pintura.svg''.

To generate a file showing all the steps:

python tri_passos.py foo.png

It will generate ''foo_passos.svg''.

# Acknowledgements

LabMacambira.sf.net, IFSC/USP.