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.

  • Jon: This is a useful tool - but in fairness I have to point out that it is remarkably similar to a routine of the...
  • oleg: The author has implemented skewness, kurtosis and checks answering appropriately to the critic.
  • Ashok: how to store 10 or more random number in a loop a loop for i = 1:n mean(i) = input(’enter the mean value...
  • Ben: Doug, Thanks for the very helpful videos! Uitables seem like a convenient way to make a customized property...
  • oleg: Allstats has no checks, no comments and could also be improved (talking about prctile implementatio). Not to...
  • Todd: Additional information and a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code can be found at...
  • Doug: @Leo, Here is the “English version” of that code. “vec = []” makes an empty variable...
  • leo: Dear Doug I have a question in your code ‘October 9th, 2009 at 13:53′ vec = []; vec = [vec val]; I...
  • Shanker Keshavdas: You sir, are a gentleman and a scholar… No really, helped me out a lot. As to what is...
  • Quan Zheng: how can I get a copy of stepspecs.m?

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