It is currently Mon Sep 01, 2014 2:30 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: About the next G'MIC surprise
PostPosted: Tue Mar 19, 2013 6:25 pm  (#11) 
Offline
GimpChat Member

Joined: Feb 01, 2013
Posts: 24
Location: London, UK
David, too much of a surprise .. my eyebrows fell off .. are you roughly solving a PDE in patch-space?

Anyway, amazing, looking forward to that on windoze.

A single "inpaint" mask raises the segmentation/connectivity problem of choosing which patches are the best clone sources .. I was recently segmenting image by chroma (YUV without Y) to have multiple source types and was going to re-synth from those .. maybe you can do some similar trick with your patch method .. i.e. a complex version to return multiple inpainted layers each using a distinct potential archetype (rather than fitting to the inpaint region's boundary)

_________________
-- jayprich


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Wed Mar 20, 2013 10:51 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 983
The algorithm has been optimized a little bit. A new source archive for the 1.5.5.1 beta version has been released as well. Still work in progress though !

Here are some new results I've done using the G'MIC plug-in for plug-in, filter 'Enhancement / Inpaint [patch-based]'. Looks promising to me !

Image
Image
Image


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Wed Mar 20, 2013 5:42 pm  (#13) 
Offline
GimpChat Member

Joined: Jan 21, 2013
Posts: 5
Hi everyone,

Thanks a lot indeed for this new, amazing filter! :)

I am wondering whether It may be possible to expand this filter in order to get a new opposite option?

In short, as with Gimp, with the foreground select tool, IMHO, it would be very useful to have this same option with G'mic with this new filter.

More precisely, with G'mic:
1. You might "paint" on the image you want to extract from the background;
2. When you are done, you might apply this filter in order to "delete" all background (all pixels should be deleted).

In essence, the filter should be able to delete all unnecessary pixels (the ones NOT selected) in order to extract your image from the background.

For example, in the picture where there is the bird (the image just posted by Ronounours) you might be able to extract the bird from the background (that is, the opposite of what the filter is doing right now....).

The Siox algorithm implemented in Gimp allows to get the same result.
Maybe this new filter with G'mic might be more powerful compared to Siox on top :)
In addition of requiring a minor amount of clicks to get the job done (namely extract your image from the background).

P.s: Some years ago (2009) there has been a Google - Summer of Code which was aimed to improve the Siox algorithm version on Gimp.
Unfortunately, this Gsoc work was never merged to Gimp :(
To my knowlege, the Siox algorithm version implemented on Gimp has not received any improvement these past years...
Two years ago the Krita team tried to implement the Siox algorithm on Krita, through a Google Summer of Code project, but this student failed as well :(

Best regards!


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Thu Mar 21, 2013 5:58 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 983
I don't get it sylvio.
The mask must be selected by the user to inpaint its content. So, all the segmentation work is done by the user, not by the algorithm. I don't see how the inpaint method could be used to automatically segment foreground objects from the background.


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Thu Mar 21, 2013 7:19 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 566
Thanks Ronounours and Maxime Daisy. Wonderful performance.

_________________
Image


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Fri Mar 22, 2013 1:18 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 983
New progress on the patch-based inpainting algorithm has been made. Another gain in terms of speed, and another beta release, so you can test it if you wish. This is now quite usable, the following example has been computed on my small netbook (with a CPU of 1.1ghz). It took like 3 minutes to achieve on this very slow machine :
Image

I would be interested to get your feedback on this. Didn't have time today to compile it for Windows and Linux64, but I'll try to do it on next monday.


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Fri Mar 22, 2013 2:27 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 679
Thank you very much David and Maxime Daisy!
These kinds of filters are always very helpful for photomanipulation.

I wonder what would happen in an image with many colors, where you can not choose a color for the mask that does not exist in the image. Would it be better that the repainting is done through a selection rather than a colored mask?

Ronounours wrote:
the following example has been computed on my small netbook (with a CPU of 1.1ghz). It took like 3 minutes to achieve on this very slow machine.
I would be interested to get your feedback on this

Would be nice if you share an image with the mask already done and the values ​​of the parameters that you used in the filter, to do the benchmark over the same image and so we share the results of computation times and CPU characteristics.

_________________
Image
Be patient, English is not my language.


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Fri Mar 22, 2013 3:39 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 983
The inpaint filters have now two different modes to select the mask to fill in. Either you define it with a prescribed color (as I did above), either you define it as an opaque region on a top layer.


Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Fri Mar 22, 2013 5:23 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 679
Oh, now I see.
I've compiled G'MIC 1.5.5.1 beta for Linux 64bit.
I am applying the filter in the following image, over the yellow wire:
http://www.fileswa/Qby5At5/inpaint-patch-based_test(not download this to test).html

Something does not work well. If I select "opaque region in top layer" the filter does nothing.
If I merge the layers and then I apply the filter with red mask (#FF0000) selecting "Mask by color", then something strange happens, the mask edges still appear. But if I paint new regions in red, the filter works on the new regions. The original red line over de yellow wire still having the problem that I had mentioned.
Using GIMP 2.8.4, Kubuntu 64bits

Edit: Now I have done another test and the problem also occurs in the new regions that I paint. I really do not know when the problem occurs, or when not.
Edit2: This file is that works:
http://www.fileswap.com/dl/muk1p6GMiV/i ... 1.xcf.html

_________________
Image
Be patient, English is not my language.


Last edited by YAFU on Fri Mar 22, 2013 6:42 pm, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: About the next G'MIC surprise
PostPosted: Fri Mar 22, 2013 5:50 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 983
Indeed, there was a bug with the top layer masking mode. It should be fixed now (you need to refresh your filters).
Note also that your red mask is *not* perfectly red, so using the 'color mask' mode will not select all your shape, but will exclude pixels that are aliased red, that explains you don't get the desired mask at the end.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login  

* Subscribe to Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group