Not perfect, but not too bad either, given that it took 30 seconds to do it. I'm sure the size and shape of the selection changes the result, and then the filter has a "radius" parameter which by default is set to 100 and can be changed, and I guess it will change the result.
Re:The almost-magical "content aware fill" plugin from a few...
by drats on Friday March 26, 2010 @11:07PM
(#1222504)
It is a great starting point to make Trotsky-duck disappear on Stalin's orders. http://i.imgur.com/xK6Jl.jpg
The wealth of free tools is just amazing these days.
Re:The almost-magical "content aware fill" plugin from a few...
by thingie on Saturday March 27, 2010 @04:57AM
(#1222772)
Well, it's still quite obvious that something is missing there, as the central area of the picture is visibly less blurred than its surrounding. I guess you could fix that easily by just blurring it with ordinary gimp blur. (But great start indeed, comrade. :o))
Re:The almost-magical "content aware fill" plugin from a few...
by cma on Friday March 26, 2010 @09:24PM
(#1222411)
Another technique is to normal-crop out the sky and the distant grass that is so blurry, "content-aware" crop out the duck, then paste back in the stuff you originally cropped out. The white bits at the bottom are sky. The blurry bits are where grass far in the background was stitched in.
Re:The almost-magical "content aware fill" plugin from a few...
by aidenn0 on Friday March 26, 2010 @07:57PM
(#1222308)
Not nearly as good as what the photoshop demo did. In particular, the photoshop demo had examples of content aware fill with shadows moving through the object to be removed. In this example you can see the line/shadow of the overhang being eliminated with the purse. Maybe the photoshop fill would have done the same and they just cherry-picked some examples, but right now I'm thinking it's just better.
Re:The almost-magical "content aware fill" plugin from a few...
by jerf on Friday March 26, 2010 @08:10PM
(#1222322)
It's hard to tell, because unless you had access to a different video than I did you can't really see what Photoshop did, even after bumping it up to 480p. In this case I think we have the raw files, so you have the chance to examine the results up close and personal. It's not a direct comparison.
Re:The almost-magical "content aware fill" plugin from a few...
by Batsu on Friday March 26, 2010 @08:31PM
(#1222362)
Indeed, if there ever was a problem with true verification, it is the requirement that you have to do it yourself without anyone involved in the steps.
Re:The almost-magical "content aware fill" plugin from a few...
by wazoox on Saturday March 27, 2010 @07:16AM
(#1222853)
Even if it's only 75% as good, it's 1° free 2° free 3° free so it doesn't cost any money, and you can adapt it / enhance it. So it beats photoshop hands down easily.
Re:The almost-magical "content aware fill" plugin from a few...
by Qz on Friday March 26, 2010 @08:39PM
(#1222370)
Agreed -- when the trash is removed in the GIMP plugin, you can see that the line on the wall vanishes too -- the CS5 version seems like it would have extended it.
Re:The almost-magical "content aware fill" plugin from a few...
by blhack on Friday March 26, 2010 @08:45PM
(#1222374)
As far as I know, they're using the same algorithm. If you can find me a high-enough resolution desert picture like the one they used, I'll apply the filter to see...
Re:The almost-magical "content aware fill" plugin from a few...
by danudey on Friday March 26, 2010 @08:21PM
(#1222347)
In the third picture, if you look in the bottom left and right corners, you can see a sudden colour change along the lines where the original picture's content ended. On the right, for example, the original cloud is sort of yellowish, then it suddenly becomes a more neutral grey along a diagonal line.
In the sky it's harder to tell, but it's still there too.
Re:The almost-magical "content aware fill" plugin from a few...
by SlyShy on Friday March 26, 2010 @08:13PM
(#1222329)
Except those aren't actually the original picture. That's the picture with the trash already removed.
Not that I'm saying Gimp can't do as good of a job. It's exactly the same technology based on the same research. But I am saying that blog post is a tad dishonest.
Re:The almost-magical "content aware fill" plugin from a few...
by jcl on Friday March 26, 2010 @11:39PM
(#1222531)
Probably not. There are a number of image inpainting, texture synthesis, and reconstruction algorithms that can be applied, with different behaviors regarding noise, color correction, detail scale, handling of regularity/irregularity, temporal coherence, run time, etc.
GIMP's Resynthesizer is based on a 2005 PhD thesis, while the Photoshop thing is probably based on a 2009 SIGGRAPH paper.
Re:The almost-magical "content aware fill" plugin from a few...
by blasdel on Friday March 26, 2010 @08:17PM
(#1222335)
It looks like it doesn't really have a UI -- is there a version factored out of GIMP that just takes the source image and a mask image as arguments?
For the art producers the Photoshop version would me massively superior just for integrating with the UI, but for our purposes a version of this as a standalone utility or baked into PIL or ImageMagick would be fucking awesome.
Re:The almost-magical "content aware fill" plugin from a few...
by ricree on Friday March 26, 2010 @08:25PM
(#1222353)
Gimp has a batch mode that lets you run commands without loading the UI. That would probably achieve the same thing, although it might be a little much if you're sure that all you want is resynthesizer.
Re:The almost-magical "content aware fill" plugin from a few...
by CWuestefeld on Friday March 26, 2010 @09:24PM
(#1222409)
As I said in the CS story, this is cool but nothing new. I don't see how it's different from Alien Skin's Image Doctor (http://www.alienskin.com/imagedoctor/index.aspx ), which has been available as a plugin for years. I've been using it from PaintShopPro for quite some time.
Re:The almost-magical "content aware fill" plugin from a few...
by shimonamit on Saturday March 27, 2010 @06:28AM
(#1222829)
Too bad this plugin isn't being maintained by the author. It only works with GIMP 2.4 from what I'm reading. This tool should be adopted as a first class GIMP tool.
Re:The almost-magical "content aware fill" plugin from a few...
by shimonamit on Sunday March 28, 2010 @08:01AM
(#1224482)
The author writes on his homepage he is no longer maintaining it and hasn't been following the GIMP API changes. He is also looking for someone to take over:
http://i.imgur.com/LHvih.jpg
Here's the after:
http://i.imgur.com/jSRoy.jpg
Not perfect, but not too bad either, given that it took 30 seconds to do it. I'm sure the size and shape of the selection changes the result, and then the filter has a "radius" parameter which by default is set to 100 and can be changed, and I guess it will change the result.
Same pictures as the Video. Gimp actually does better here.
In the sky it's harder to tell, but it's still there too.
Not that I'm saying Gimp can't do as good of a job. It's exactly the same technology based on the same research. But I am saying that blog post is a tad dishonest.
GIMP's Resynthesizer is based on a 2005 PhD thesis, while the Photoshop thing is probably based on a 2009 SIGGRAPH paper.
http://www.logarithmic.net/pfh/thesis
http://www.cs.princeton.edu/gfx/pubs/Barnes_2009_PAR/index.p...
gimp-plugin-registry (it contains the smart-remove filter)
gimp-resynthesizer
Does anyone have experience with it or something better to suggest?
For the art producers the Photoshop version would me massively superior just for integrating with the UI, but for our purposes a version of this as a standalone utility or baked into PIL or ImageMagick would be fucking awesome.
What's the error that you're getting when you try to run it? Are you using the patched file from my tutorial?
http://www.logarithmic.net/pfh/resynthesizer.
(I forgot where I read about the "since 2.4" part.)