{"id":51,"date":"2007-08-21T22:46:32","date_gmt":"2007-08-22T02:46:32","guid":{"rendered":"http:\/\/patorjk.com\/blog\/2007\/08\/21\/cool-new-image-resizing-technique\/"},"modified":"2014-01-25T18:07:15","modified_gmt":"2014-01-25T22:07:15","slug":"cool-new-image-resizing-technique","status":"publish","type":"post","link":"https:\/\/patorjk.com\/blog\/2007\/08\/21\/cool-new-image-resizing-technique\/","title":{"rendered":"Cool New Image Resizing Technique"},"content":{"rendered":"<p>One of the things I studied in grad school was how to find the least visible seam in an image. This would be useful say if you overlapped two images and wanted to find the best way to cut them together, or if you wanted to create your own <a target=\"new\" href=\"http:\/\/userpages.umbc.edu\/~pgille1\/waldo.jpg\">waldo image<\/a>. I thought that the seam finding algorithms were really cool, but that there wasn\u2019t a whole lot of use for them outside of doctoring photos and generating texture. Holy crap was I wrong. Check out this video:<\/p>\n<p><object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/vIFCV2spKtg\"><\/param><param name=\"wmode\" value=\"transparent\"><\/param><embed src=\"http:\/\/www.youtube.com\/v\/vIFCV2spKtg\" type=\"application\/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"><\/embed><\/object><\/p>\n<p>This is the first time I\u2019ve ever watched a technical video and thought to myself \u201cI understand everything that is going on here\u2026 why didn\u2019t I think of this!!\u201d That\u2019s a truly awesome idea. It makes me want to breakout my seam finding code and make an image resizer (I\u2019ve written code that finds the low energy image seams you see in the video \u2013 it\u2019s what I used to make the waldo image, which is the same image randomly pasted over and over again with a seam between overlapping areas).<\/p>\n<p>The only problem with that idea is that finding seams isn\u2019t as fast as they show you, at least not for large images (400+ by 400+). They might be using a different algorithm then what I\u2019m thinking of, or maybe they were running the app on a super fast computer, but in my experience finding a seam can take some time if the image is of a decent size (by \u201csome time\u201d I mean 1 or 2 seconds). Though I might be wrong and this might be a super fast algorithm. It\u2019ll be interesting to see how people apply this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things I studied in grad school was how to find the least visible seam in an image. This would be useful say if you overlapped two images and wanted to find the best way to cut them together, or if you wanted to create your own waldo image. I thought that the &hellip; <a href=\"https:\/\/patorjk.com\/blog\/2007\/08\/21\/cool-new-image-resizing-technique\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Cool New Image Resizing Technique<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-interesting-news-articles"],"_links":{"self":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":1,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":2786,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions\/2786"}],"wp:attachment":[{"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/patorjk.com\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}