Awesome new image resizing algorithm

A place to discuss the science of computers and programs, from algorithms to computability.

Formal proofs preferred.

Moderators: phlip, Larson, Moderators General, Prelates

Awesome new image resizing algorithm

Postby necroforest » Sun Aug 26, 2007 2:33 am UTC

This was on /., but I figured not everyone reads that and it's cool enough to post on here:

http://www.youtube.com/watch?v=vIFCV2spKtg
ONE PART CLASS, ONE PART WHISKEY, TWO PARTS GUN! SERVE NEAT!
User avatar
necroforest
 
Posts: 194
Joined: Tue Apr 10, 2007 3:46 pm UTC

Postby nyeguy » Sun Aug 26, 2007 3:15 am UTC

The worst thing about that is that it is so simple, and it makes perfect sense, so it makes you wonder why you hadn't already thought about it.

But that is really cool. I can see this being really useful in content presentation for the web.
Image
User avatar
nyeguy
 
Posts: 580
Joined: Sat Aug 04, 2007 5:59 pm UTC

Postby Amnesiasoft » Sun Aug 26, 2007 4:01 am UTC

Ooh, very nice.
User avatar
Amnesiasoft
 
Posts: 2573
Joined: Tue May 15, 2007 4:28 am UTC
Location: Colorado

Postby taggedunion » Sun Aug 26, 2007 5:38 am UTC

That is quite cool and makes the gadget-lover in me squeal with joy.
Yo tengo un gato en mis pantelones.
User avatar
taggedunion
 
Posts: 146
Joined: Fri Jul 06, 2007 6:20 am UTC
Location: BEHIND YOU

Postby Dingbats » Sun Aug 26, 2007 12:01 pm UTC

I don't have Flash and I don't want to install the proprietary plugin, so I can't watch it. What is the new algorithm?
User avatar
Dingbats
 
Posts: 921
Joined: Tue Mar 20, 2007 12:46 pm UTC
Location: Sweden

Postby elminster » Sun Aug 26, 2007 4:35 pm UTC

oo thats funky, problem is it would require alot of calculations, or if pre-stored would increase size dramatically. Although certianly a nice approach to it, but only useful for a small number of things.
Image
elminster
 
Posts: 1382
Joined: Mon Feb 26, 2007 1:56 pm UTC
Location: London, UK, Dimensions 1 to 42.

Postby gmalivuk » Sun Aug 26, 2007 5:22 pm UTC

elminster wrote:oo thats funky, problem is it would require alot of calculations, or if pre-stored would increase size dramatically. Although certianly a nice approach to it, but only useful for a small number of things.


Shut up. It's awesome, and anyone who says otherwise is itching for a fight.

(I didn't click the link, but I'm assuming this is the one where it finds curves of minimum energy, so you can resize without distorting or losing the edges?)
In the future, there will be a global network of billions of adding machines.... One of the primary uses of this network will be to transport moving pictures of lesbian sex by pretending they are made out of numbers.
Spoiler:
gmss1 gmss2
User avatar
gmalivuk
Archduke Vendredi of Skellington the Third, Esquire
 
Posts: 19275
Joined: Wed Feb 28, 2007 6:02 pm UTC
Location: Here, There, Everywhere (near Boston, anyway)

Postby skeptical scientist » Sun Aug 26, 2007 5:41 pm UTC

elminster wrote:oo thats funky, problem is it would require alot of calculations, or if pre-stored would increase size dramatically. Although certianly a nice approach to it, but only useful for a small number of things.

Doesn't seem like it should take that long. Calculating energy at each point is likely a quick process, and only has to be done once, after which it can be updated in the region of a removed line without having to redo the whole thing. Finding a curve which is a global minimum of energy across the image is probably computationally intensive, but finding local minima can also be done quite efficiently. I bet that the resizing the algorithm performs is not significantly slower than the resampling done when zooming in and out on images in photoshop, acrobat, or other similar programs.

gmalivuk wrote:Shut up. It's awesome, and anyone who says otherwise is itching for a fight.

(I didn't click the link, but I'm assuming this is the one where it finds curves of minimum energy, so you can resize without distorting or losing the edges?)

Yes. It's obviously limited for many purposes, as image resizing which distorts is frequently not what you want. It does seem like it has some good uses however - the simulation where they cut two people out of a beach scene was pretty cool, and to accomplish the same effect in photoshop would undoubtedly have taken much longer.
I'm looking forward to the day when the SNES emulator on my computer works by emulating the elementary particles in an actual, physical box with Nintendo stamped on the side.

"With math, all things are possible." —Rebecca Watson
User avatar
skeptical scientist
closed-minded spiritualist
 
Posts: 5920
Joined: Tue Nov 28, 2006 6:09 am UTC
Location: Madison, Wisconsin

Postby necroforest » Sun Aug 26, 2007 11:11 pm UTC

skeptical scientist wrote:Calculating energy at each point is likely a quick process, and only has to be done once, after which it can be updated in the region of a removed line without having to redo the whole thing.


Well, I wrote a program that does that with 3-dimensional image data; It took about ~10 seconds to do a 2gb dataset. I think it uses the same idea as the algorithm in the video: calculate the gradient vectors using finite central differences then calculate their lengths
ONE PART CLASS, ONE PART WHISKEY, TWO PARTS GUN! SERVE NEAT!
User avatar
necroforest
 
Posts: 194
Joined: Tue Apr 10, 2007 3:46 pm UTC

Postby flatluigi » Sun Aug 26, 2007 11:40 pm UTC

I really think this is cool.

[infodump] This is Shai Avidan and Ariel Shamir entry into the SIGGRAPH computer graphics conference. A version of the video with better quality (and much larger filesize) can be found here. The paper with the information can be found here (rehosted by me). [/infodump]

Personally, I find this to be a little more cool.
Image
User avatar
flatluigi
 
Posts: 42
Joined: Sat Nov 25, 2006 4:48 pm UTC


Return to Computer Science

Who is online

Users browsing this forum: No registered users and 3 guests