{"id":11,"date":"2011-09-06T19:24:19","date_gmt":"2011-09-06T19:24:19","guid":{"rendered":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/?p=11"},"modified":"2011-09-06T20:05:41","modified_gmt":"2011-09-06T20:05:41","slug":"homework-2","status":"publish","type":"post","link":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/?p=11","title":{"rendered":"homework 2"},"content":{"rendered":"<p><strong>Non code:\u00a0<\/strong><\/p>\n<p>Create a large pixel image. \u00a0the larger the better. \u00a0Think about how to use the main space in an interesting way.<\/p>\n<p><strong>Code:\u00a0<\/strong><\/p>\n<p>5 things \u00a0(4,5 are advanced, feel free to try them though!)<\/p>\n<ol>\n<li>create a unique and fun drawing tool, where you draw into a pixel array that\u2019s uploaded to a texture. \u00a0Try to push the drawing in different ways \u2014 not just via the circle but in other ways. \u00a0 Make something fun.<\/li>\n<li>Load in an image, and as you copy the pixels from that image to another, (see the image loading code) flip the image. \u00a0Flip it in the pixel copy, not in the drawing<\/li>\n<li>take a look at the\u00a0<em>loadInImageAndDrawInterpretation\u00a0<\/em>example \u2014 make an interesting graphical interpretation of an image \u2014 think especially about the<em>\u00a0limits of perception<\/em>. \u00a0have fun with this.<\/li>\n<li>do min max contrast stretching of the image. \u00a0Find the minimum and maximum values of the pixels in an image, and then convert pixels from the source to destination like \u00a0 \u00a0((pixel \u2013 min) \/ (max \u2013 min))*255. \u00a0take a look at the histogram of both the source and destination. \u00a0how do they compare?<\/li>\n<li>do histogram equalization, as described here: http:\/\/en.wikipedia.org\/wiki\/Histogram_equalization<\/li>\n<\/ol>\n<p><strong>Example files: <\/strong><a href=\"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/wp-content\/uploads\/2011\/09\/week2.zip\">click here to download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Non code:\u00a0 Create a large pixel image. \u00a0the larger the better. \u00a0Think about how to use the main space in an interesting way. Code:\u00a0 5 things \u00a0(4,5 are advanced, feel free to try them though!) create a unique and fun drawing tool, where you draw into a pixel array that\u2019s uploaded to a texture. \u00a0Try &hellip;<\/p>\n<p><a href=\"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/?p=11\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-homework"],"_links":{"self":[{"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":4,"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":13,"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/13"}],"wp:attachment":[{"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/setpixel11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}