Intelligent Image Resizing

Few weeks back, I had written about Photoswapping images instead of Photoshopping them. Here's another groundbreaking algorithm for "content aware image resizing", thanks to Michael from Techcrunch:

[youtube=http://www.youtube.com/watch?v=qadw0BRKeMk]

The research paper, as well as a downloadable video, by Dr. Ariel Shamir and Dr. Shai Avidan is available here.

Note the differences between the earlier algorithm and this one. The earlier one used a large database of images to add or replace image sections. This one doesn't work with any external images, and is purely an algorithmic advance towards higher content awareness of the existing image itself. Now you can easily use photos from your Ibiza vacation to print family-friendly photo albums!

It is fascinating to see how we're making advances in algorithms even today - why wasn't this invented all these years that Photoshop has been around? (Simple answer: because no human mind had conceived and invented such an algorithm before).

I do wish the inventors get richly rewarded for this magnificent piece of work!

Technorati Tags: , , , ,

Share this post :

Related posts:

  1. Evocative Images from India
  2. Photoswap, not Photoshop

11 Comments

  • This is bril­liant!
    Er, what is it, actu­ally? :-)

  • Wow! This is indeed bril­liant. Thanks for high­light­ing it!

  • Arun: thanks!

    Ram­bodoc: I pre­sume you’re joking…:-)

  • This is awe­some. It would hours to do some of the stuff he is doing on Photoshop

  • No, seri­ously, this looks great and all, but what would I use it for?

  • Karthik Krish wrote:

    Its not as fast as the videos show it to be. There is a lot of pre­com­pu­ta­tion done beforehand(the energy map for exam­ple). The idea is cool but the per­for­mance on images with a lot of edges(high energy) needs to be seen.

  • doc — the guy men­tions it at the begin­ning. Basi­cally to allow for “more effec­tive rep­re­sen­ta­tion of the entire scene” in a smaller ver­sion which could be used for smaller dis­plays like say on an iPhone ;) , and also allow for gen­eral web con­tent (to acco­mo­date slower con­nec­tions better)

  • Ram­bodoc: Regard­ing what is it: have you ever tried resiz­ing an image in any image edit­ing tool? If you resize it in a diag­o­nal direc­tion, you can keep the aspect ratio intact and there’s no prob­lem. But if you stretch or com­press an image in only one direc­tion — hor­i­zon­tally or ver­ti­cally — it gets skewed and distorted.

    This algo­rithm is the first one to let you stretch or com­press an image in one direc­tion with­out dis­tort­ing it. It ‘intel­li­gently’ fills in the empty space cre­ated while stretch­ing, and merges the bor­ders ‘intel­li­gently’ while com­press­ing. That’s how you can turn the pho­to­graph of a cou­ple into that of a sin­gle per­son or expand the sky in a pho­to­graph for a bet­ter composition.

    Regard­ing what you would use it for, I don’t know. I’m sure image artists will use it for a lot of the behind-the-scenes image edit­ing that we are not even aware of when we browse the web, read mag­a­zines with cool pho­tographs, and buy posters or greet­ing cards with beautiful-looking images. Your ques­tion is a tricky one: it was asked by mankind when some­one first invented the wheel. It was what made the Prod­uct Man­ager for the IBM PC say that “there is a world mar­ket for maybe five PCs”. :-)

  • Ah, now the post makes some sense. After all, the last refuge of the edu­cated moron used to be the Med­ical school, so you know why I ask these ques­tions! :-)

  • Ah! How blessed I am to be in such enlight­ened moronic com­pany! :-)

  • That looks really cool. I can see how this can be help­ful, but wow, did that go way over my head. way, way over my head. But, thanks for sharing.