{"id":312,"date":"2006-12-15T17:30:28","date_gmt":"2006-12-15T22:30:28","guid":{"rendered":"http:\/\/oranchak.com\/?p=312"},"modified":"2006-12-15T17:30:28","modified_gmt":"2006-12-15T22:30:28","slug":"the-demons-paintbrush","status":"publish","type":"post","link":"http:\/\/www.oranchak.com\/?p=312","title":{"rendered":"The Demon&#8217;s Paintbrush"},"content":{"rendered":"<p>Sweet Lord, my <a href=\"http:\/\/online.engr.uiuc.edu\/webcourses\/ge531\">Genetic Algorithms course<\/a> has ended.  The giant pile of work is now behind me.  I have to say that despite the large amount of work, the course has been one of the most rewarding in recent memory.  There are a lot of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Genetic_algorithm#Applications\">exciting ideas<\/a> in this field<\/a>.  The course instructor is <a href=\"http:\/\/en.wikipedia.org\/wiki\/David_E._Goldberg\">David E. Goldberg<\/a>, who is an influential luminary in the field.<\/p>\n<p>For the course project, I decided to return to my decades-old interest in graphics programming by developing a genetic artwork program.  The basic idea was to &#8220;breed&#8221; new images by figuring out which images in a random population are better than others.   I needed a way to rank which images were better than others.  Inspired by Flickr&#8217;s concept of <a href=\"http:\/\/flickr.com\/explore\/interesting\/7days\/\">interestingness<\/a>, I decided to use color comparisons to popular images from Flickr.com as a way to rank images.  An image that has a close match in color to a popular or interesting Flickr image is given a high rank.  The genetic algorithm runs over successive generations to produce images with higher ranking.  Eventually I got a lot of <a href=\"http:\/\/oranchak.com\/photosome\/results\/\">good results<\/a>, and then a scary demon appeared:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" id=\"image311\" width=\"450\" height=\"69\" src=\"http:\/\/oranchak.com\/wp-content\/uploads\/2006\/12\/Picture%2069.jpg\" alt=\"Picture 69.jpg\" \/><\/p>\n<p>The picture on the left is the Flickr image that the generated images resembled most.  Lower numbers mean higher rankings.  Look at 392.  The demon got 4th place!  Maybe that&#8217;s why he looks angry.<\/p>\n<p>Here are some other interesting results I got with the demon&#8217;s paintbrush.  Click to get to a more detailed writeup, including the many thousands of generated results:<\/p>\n<p><a href=\"http:\/\/oranchak.com\/photosome\/results\/\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"236\" src=\"http:\/\/oranchak.com\/photosome\/results\/fig6.jpg\"><\/a><\/p>\n<p><i>UPDATE:<\/i>  <a href=\"http:\/\/flickr.com\/photos\/53547394@N00\/sets\/72157594492366659\/\">Click here<\/a> to see some giant tiled montages of artwork generated by the technique.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sweet Lord, my Genetic Algorithms course has ended. The giant pile of work is now behind me. I have to say that despite the large amount of work, the course has been one of the most rewarding in recent memory. &hellip; <a href=\"http:\/\/www.oranchak.com\/?p=312\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,5,35,36],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-art","category-bizarre","category-computing","category-tech","category-toys"],"_links":{"self":[{"href":"http:\/\/www.oranchak.com\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.oranchak.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.oranchak.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.oranchak.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.oranchak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":0,"href":"http:\/\/www.oranchak.com\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.oranchak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.oranchak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.oranchak.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}