CWYAlpha

Just another WordPress.com site

Thought this was cool: Genetic Programming: Evolution of Mona Lisa | Roger Alsing Weblog

leave a comment »


Comments: “Genetic Programming: Evolution of Mona Lisa | Roger Alsing Weblog”

URL: http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/?hn

[EDIT]
Added FAQ here:
http://rogeralsing.com/2008/12/09/genetic-programming-mona-lisa-faq/
Added Gallery here: http://rogeralsing.com/2008/12/11/genetic-gallery/

This weekend I decided to play around a bit with genetic programming and put evolution to the test, the test of fine art🙂

I created a small program that keeps a string of DNA for polygon rendering. 
The procedure of the program is quite simple:

0) Setup a random DNA string  (application start)

1) Copy the current DNA sequence and mutate it slightly
2) Use the new DNA to render polygons onto a canvas
3) Compare the canvas to the source image
4) If the new painting looks more like the source image than the previous painting did, then overwrite the current DNA with the new DNA
5) repeat from 1

Now to the interesting part🙂

Could you paint a replica of the Mona Lisa using only 50 semi transparent polygons?

That is the challenge I decided to put my application up to.

The image below is the result of that test:
(The number below each image is the number of generations it took to reach that specific painting)

So what do you think?

[EDIT]
Added FAQ here: http://rogeralsing.com/2008/12/09/genetic-programming-mona-lisa-faq/
Added Gallery here: http://rogeralsing.com/2008/12/11/genetic-gallery/

Like this:

7 bloggers like this.

This entry was posted in .NET, Evolution by Roger Alsing. Bookmark the permalink.


from Hacker News 50: http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/?hn&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hacker-news-feed-50+%28Hacker+News+50%29

Written by cwyalpha

十二月 13, 2012 在 1:13 下午

发表在 Uncategorized

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: