{"id":3295,"date":"2014-01-24T22:23:44","date_gmt":"2014-01-25T06:23:44","guid":{"rendered":"http:\/\/bendwavy.org\/wp\/?p=3295"},"modified":"2018-02-24T17:00:03","modified_gmt":"2018-02-25T01:00:03","slug":"in-which-i-curse-my-lack-of-omniscience","status":"publish","type":"post","link":"https:\/\/bendwavy.org\/wp\/?p=3295","title":{"rendered":"in which I curse my lack of omniscience"},"content":{"rendered":"<p>I want to push several hundred greyscale images through a threshold filter, so that an output pixel is black or white according to whether the corresponding input pixel is less or more than 1\/2 bright.  (My goal is a &lsquo;woodcut&rsquo; effect.)<\/p>\n<p>ImageMagick can apparently do this with one command, but I lack a library that it needs.<\/p>\n<p>GIMP has a menu command with this function, but to do it from a script it seems I&#8217;d need to learn Scheme.<\/p>\n<p>I could write a program using Python Imaging Library (which I&#8217;ve used to output most of my mathematical designs in recent years), but so far in RTFM I can&#8217;t tell how to, y&#8217;know, access the pixels it reads in.  <strong>Later:<\/strong> <a href=\"http:\/\/effbot.org\/imagingbook\/\">Found a better FM<\/a>.<\/p>\n<p>Wish me luck.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to push several hundred greyscale images through a threshold filter, so that an output pixel is black or white according to whether the corresponding input pixel is less or more than 1\/2 bright. (My goal is a &lsquo;woodcut&rsquo; &hellip; <a href=\"https:\/\/bendwavy.org\/wp\/?p=3295\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3295","post","type-post","status-publish","format-standard","hentry","category-neep-neep"],"_links":{"self":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3295"}],"version-history":[{"count":5,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3295\/revisions"}],"predecessor-version":[{"id":3321,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3295\/revisions\/3321"}],"wp:attachment":[{"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bendwavy.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}