{"id":2035,"date":"2007-09-04T09:25:06","date_gmt":"2007-09-04T14:25:06","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2007\/09\/04\/content-aware-image-resizing\/"},"modified":"2017-07-24T19:02:51","modified_gmt":"2017-07-24T23:02:51","slug":"content-aware-image-resizing","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2007\/09\/04\/content-aware-image-resizing\/","title":{"rendered":"Content aware image resizing"},"content":{"rendered":"<p>One of the things I love about MATLAB is hearing about an interesting algorithm and being able to put it together quickly to understand how it works, if only to satiate my curiosity.  What I really love is when someone on the File Exchange has already done the coding of said algorithm and I can just start my exploration there.  <\/p>\n<p>That happened this week when Aslak pointed to a video that does some really cool content aware image resizing:<\/p>\n<p><\/p>\n<p>This algorithm will make an image like this:<\/p>\n<p><img decoding=\"async\" id=\"image2033\" src=\"https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/before.jpg\" alt=\"before.jpg\" \/><\/p>\n<p>Look like this:<\/p>\n<p><img decoding=\"async\" id=\"image2034\" src=\"https:\/\/blogs.mathworks.com\/pick\/..\/images\/pick\/after.jpg\" alt=\"after.jpg\" \/><\/p>\n<p>This would be good for web pages that change width as a reader resizes the window and other applications.<\/p>\n<p>Here is a promo video for the file Aslak made.<\/p>\n<p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-2035-2\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/21_Promo_seamcarving.mp4?_=2\" \/><a href=\"https:\/\/blogs.mathworks.com\/images\/pick\/21_Promo_seamcarving.mp4\">https:\/\/blogs.mathworks.com\/images\/pick\/21_Promo_seamcarving.mp4<\/a><\/video><\/div><\/p>\n<p>\n<a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=16123&#038;objectType=FILE (link no longer works)\"><br \/>\nHere is the file itself.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the things I love about MATLAB is hearing about an interesting algorithm and being able to put it together quickly to understand how it works, if only to satiate my curiosity.  What I really&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2007\/09\/04\/content-aware-image-resizing\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2035"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2035"}],"version-history":[{"count":7,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2035\/revisions"}],"predecessor-version":[{"id":8782,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2035\/revisions\/8782"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}