{"id":248,"date":"2007-03-11T01:08:44","date_gmt":"2007-03-11T05:08:44","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/jreyes\/2007\/03\/11\/grassy-field\/"},"modified":"2008-12-19T14:15:11","modified_gmt":"2008-12-19T18:15:11","slug":"grassy-field","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/jreyes\/2007\/03\/11\/grassy-field\/","title":{"rendered":"Grassy Field"},"content":{"rendered":"<p>\nSince all I do these days is post my school projects to my blog, here&#8217;s another one for you. This week we had to create a collage. The requirements were pretty bare: at least five instances of the picture, one rotation, one rescaling, and at least one color modification. Try to spot each of the requirements in the final product below. (Maybe you&#8217;ve seen the original image before.) I had planned on using longer strips than the squares I ended up implementing, but I got lazy. The checkered effect is a little busy for my tastes; hopefully it&#8217;ll make the grade.\n<\/p>\n<p>\nI tried for freakin&#8217; ever to get the sky to soft clip to the hill top. I was able to adapt the intermediate image technique described in <a href=\"http:\/\/java.sun.com\/mailers\/techtips\/corejava\/2006\/tt0923.html\">this article<\/a> to create a tacky sun (not shown for art&#8217;s sake), but not for much more. Instead, I used the built-in, jagged <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/awt\/Graphics.html#setClip(int,%20int,%20int,%20int)\">setClip()<\/a> method native to the <a href=\"http:\/\/java.sun.com\/j2se\/1.5.0\/docs\/api\/java\/awt\/Graphics2D.html\">java.awt.Graphics2D<\/a> class. In case you were wondering, the clip was made with about six straight lines. I hate spline fitting, and try never to use curves&#8212;especially if line segments will do just fine. File that little tidbit away, it could be useful someday.\n<\/p>\n<p>\nBut convolutions rock. I&#8217;ve always thought so. Ever since I started using them to do signal processing in astronomy class. Our professor made us do a lot of convolutions using a visual calculus that really changed the way I thought about calculation in general. Drawing it out refined my sense of geometric interaction and avoided a lot of messy integrals. Here&#8217;s to qualitative methods: hurrah!\n<\/p>\n<p align=\"center\">\n<img decoding=\"async\" src=\"http:\/\/blogs.law.harvard.edu\/jreyes\/files\/2007\/03\/field.png\" alt=\"A field in collage\" \/>\n<\/p>\n<p><font size=\"1\" color=\"#999\">Technorati Tags:<a href=\"http:\/\/www.technorati.com\/tag\/java\" rel=\"tag\">java<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/media computation\" rel=\"tag\">media computation<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/graphics2d\" rel=\"tag\">graphics2d<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/cs110\" rel=\"tag\">cs110<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/field\" rel=\"tag\">field<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/convolution\" rel=\"tag\">convolution<\/a>, <a href=\"http:\/\/www.technorati.com\/tag\/collage\" rel=\"tag\">collage<\/a><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since all I do these days is post my school projects to my blog, here&#8217;s another one for you. This week we had to create a collage. The requirements were pretty bare: at least five instances of the picture, one &hellip; <a href=\"https:\/\/archive.blogs.harvard.edu\/jreyes\/2007\/03\/11\/grassy-field\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":102,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[380,1071,136,114,142],"tags":[],"class_list":["post-248","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-creativity","category-mathematics","category-personal","category-technology"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/users\/102"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/jreyes\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}