File Exchange Pick of the Week

September 4th, 2007

Content aware image resizing

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.

That happened this week when Aslak pointed to a video that does some really cool content aware image resizing:

This algorithm will make an image like this:

before.jpg

Look like this:

after.jpg

This would be good for web pages that change width as a reader resizes the window and other applications.

Here is a promo video for the file Aslak made.



Here is the file itself.

2 Responses to “Content aware image resizing”

  1. JIJEESH replied on :

    It was superb.can i get the code for this

  2. Doug replied on :

    @Jijeesh

    Please contact the original author directly. The link to his files is at the bottom of the post.

    Doug

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.