My photo rendered using polygons

Saturday, December 13, 2008 11:32
Posted in category Fun

Okay, this is really nothing more than a cool toy, but it is still really cool! This is made using a simple application by Roger Alsing that starts with a blank slate and then adds some random polygons to it. The result is compared to the source image and if it looks closer then it is kept, otherwise it is discarded. The kept result is then further mutated and compared again and so forth. After a while, it gets pretty close to the original source.

There was a bit of skeptism about this when this was first spread over the Internet, but the creator has since made his source code and binaries available via Google, so go download it and play with it if you’re so inclined. The author originally used the program to generate an image of the Mona Lisa and he managed to get a very good representation after about 900,000 generations and using 50 polygons. Unfortunately I happened to pick a rather more complex photo, and this is what I got after having the computer working at it whole night. As you can see, it’s up to 2.3 million generations and 172 polygons.

The author calls this an example of genetic programming, but I’m not sure if the term is appropriate because usually these things involve a population pool of multiple competitors in each generation while there is only ever one instance in each generation in this program. People have been using this as an example to implement their own versions that do involve competition between multiple mutations though, and it will be interesting to see if they are more efficient at arriving at the source image.

You can leave a response, or trackback from your own site.

5 Responses to “My photo rendered using polygons”

  1. walla says:

    December 13th, 2008 at 2:50 pm

    A modern-day learned man living an examined socratic life, you are.

    Are you in KL? we should get together with deminimis.

  2. wankongyew says:

    December 15th, 2008 at 11:10 am

    I’m not sure about the “learned” part. I just read widely and I’m interested in many different fields of study, but I’m the proverbial “jack of all trades, master of none”. In any case, I’m currently based in Kota Kinabalu.

  3. shan says:

    December 16th, 2008 at 11:47 am

    His wife here. I’m always happy that he can make some new friends. We’ll be back during CNY, maybe you all can arrange to meet up.

  4. walla says:

    December 16th, 2008 at 12:06 pm

    Happy to do so; will sound de minimis the next time i meet him. Email me early before you come over so that i can organized a get-together.

    If you need ebooks on any subject, provide a gmail address.

  5. elchinas says:

    January 5th, 2009 at 3:49 pm

    greatings…

    super!…

Leave a Reply