public
Description: Generate approximate vectorized copies of source bitmap images using Monte Carlo methods
Homepage:
Clone URL: git://github.com/unintelligible/montecarlomonalisa.git
name age message
file .gitignore Loading commit data...
file README.textile
file main.rb
file ml.jpg
README.textile

A ruby implementation of Roger Alsing’s Mona Lisa evolution program, using JRuby. At this stage, this is pretty much a line-by-line copy of Roger Alsing’s original implementation (aside from a few Java-isms for displaying the output), minus the user-friendly interface; I mainly used the conversion to understand how the original works, but unfortunately I didn’t really add that much new in the process.

The script accepts up to two arguments: a path to a source image (the default Mona Lisa image is used if none is provided), and whether or not to save the output in the “dumps” folder (yes if the second argument is “savedumps”, otherwise no).

Reference implementation:

http://code.google.com/p/alsing/downloads/list

Other implementations:

Javascript:

http://alteredqualia.com/visualization/evolve/

Java:

http://github.com/ynd/genetic-drawing/tree/master

Clojure:

http://github.com/ynd/mona-clojure/tree/master

C:

http://github.com/mackstann/mona/tree/master