{"id":1480,"date":"2010-09-06T12:59:11","date_gmt":"2010-09-06T09:59:11","guid":{"rendered":"https:\/\/yehar.com\/blog\/?p=1480"},"modified":"2011-11-14T00:30:55","modified_gmt":"2011-11-13T22:30:55","slug":"raster","status":"publish","type":"post","link":"https:\/\/yehar.com\/blog\/?p=1480","title":{"rendered":"Raster!"},"content":{"rendered":"<p>2010-09-06<\/p>\n<p>I have a problem with the halftone patterns that have recently become fashionable: They are not made correctly. For example, have a look at this detail from an image made using <a href=\"http:\/\/arje.net\/rasterbator\">Rasterbator<\/a> (v1.2 or earlier):<\/p>\n<p><figure style=\"width: 300px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"Rasterbator\" src=\"http:\/\/arje.net\/images\/rasterbator-closeup2.jpg\" alt=\"\" width=\"300\" height=\"246\" \/><figcaption class=\"wp-caption-text\">Rasterbated image, detail<\/figcaption><\/figure><\/p>\n<p>Or any of these random examples from various sources:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"Vector raster pattern\" src=\"http:\/\/image.shutterstock.com\/display_pic_with_logo\/480010\/480010,1263468320,4\/stock-vector-seamless-simple-raster-pattern-will-tile-endlessly-44470105.jpg\" alt=\"\" width=\"450\" height=\"470\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"Vectoraster\" src=\"http:\/\/img.brothersoft.com\/screenshots\/softimage\/v\/vectoraster-441551-1296370367.jpeg\" alt=\"\" width=\"805\" height=\"607\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"blue dot raster circle pattern\" src=\"http:\/\/image.shutterstock.com\/display_pic_with_logo\/136054\/136054,1278004196,2\/stock-photo-blue-dot-raster-circle-pattern-56397568.jpg\" alt=\"\" width=\"338\" height=\"470\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"Raster elements\" src=\"http:\/\/3.bp.blogspot.com\/_fFl015dzuoc\/SKFstEhfFOI\/AAAAAAAAAfU\/2OJmXiuq2ZA\/s1600\/RasterElements.png\" alt=\"\" width=\"400\" height=\"400\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"Dreamstime\" src=\"http:\/\/www.dreamstime.com\/raster-thumb4071302.jpg\" alt=\"\" width=\"400\" height=\"400\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"The Rasterbator\" src=\"http:\/\/thecraftbegins.com\/wordpress\/wp-content\/uploads\/2011\/03\/raster.jpg\" alt=\"\" width=\"630\" height=\"637\" \/><\/p>\n<p>What you see in each case is a matrix of perfect circles. What this means is that the sizes of the circles are the only degrees of freedom. Considering the number of circles, the rasterized image cannot convey any more information than an image that has the same number of gray-scale pixels. So effectively what Rasterbator does is it resamples the original image to the size of the matrix of circles, and then determines the sizes of the circles based on the gray-scale values of the pixels. If the original image is of greater detail than the resampled one, those details are lost in the process. But they need not be, if a different process is used.<\/p>\n<p>First, choose a halftone pattern. This would normally be a self-repeating (tiled) grey-scale pattern. The requirements are that the pattern contains a full range of grey-scale values from black to white and that different intensities are equally represented. Second, superimpose the halftone pattern and the original image, at the same pixel resolution, and for each pixel, if the original image has a brighter gray-scale value than the halftone pattern, set the value of the pixel in the rasterized image to white. Otherwise set it to black.<\/p>\n<p>The process can be simulated in an image processing program. First of all, one should ensure that all processing is carried out in linear-intensity space, that is, at gamma 1.0. Equal representation of intensities in the halftone pattern can be enforced by <em>equalization<\/em>. To do the rasterization, one can negate the halftone pattern, adjust the opacity of the top one of the two layers to 0.5 and flatten the image, then apply a threshold or posterization effect that sets pixel values to white if they are of greater intensity than 0.5, or to black, otherwise.<\/p>\n<p>Here are some examples on how different halftone patterns can look when (more-or-less) correctly applied to an image:<\/p>\n<p><figure id=\"attachment_1482\" aria-describedby=\"caption-attachment-1482\" style=\"width: 371px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-1482 \" title=\"kekkonen\" src=\"http:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen-619x1024.jpg\" alt=\"\" width=\"371\" height=\"614\" srcset=\"https:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen-619x1024.jpg 619w, https:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen-181x300.jpg 181w, https:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen.jpg 1024w\" sizes=\"(max-width: 371px) 85vw, 371px\" \/><\/a><figcaption id=\"caption-attachment-1482\" class=\"wp-caption-text\">Kekkonen with a sinusoidal halftone pattern<\/figcaption><\/figure><\/p>\n<p><figure id=\"attachment_1481\" aria-describedby=\"caption-attachment-1481\" style=\"width: 379px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-1481 \" title=\"kekkonen2\" src=\"http:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen2-631x1024.png\" alt=\"\" width=\"379\" height=\"614\" srcset=\"https:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen2-631x1024.png 631w, https:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen2-185x300.png 185w, https:\/\/yehar.com\/blog\/wp-content\/uploads\/2010\/09\/kekkonen2.png 720w\" sizes=\"(max-width: 379px) 85vw, 379px\" \/><\/a><figcaption id=\"caption-attachment-1481\" class=\"wp-caption-text\">Kekkonen with honeycomb halftone pattern<\/figcaption><\/figure><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2010-09-06 I have a problem with the halftone patterns that have recently become fashionable: They are not made correctly. For example, have a look at this detail from an image made using Rasterbator (v1.2 or earlier): Or any of these random examples from various sources: What you see in each case is a matrix of &hellip; <a href=\"https:\/\/yehar.com\/blog\/?p=1480\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raster!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,1],"tags":[],"_links":{"self":[{"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1480"}],"collection":[{"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1480"}],"version-history":[{"count":0,"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1480\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/1482"}],"wp:attachment":[{"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yehar.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}