It is currently Tue Apr 23, 2024 6:16 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 256 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next
Author Message
 Post subject: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 9:28 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Hi there,

These two last days, I've worked quite hard on the G'MIC code (particularly for the GIMP plug-in), and I'd like to share something with you.
This is not yet available in current stable version 1.6.0.0, but it is in current beta 1.6.0.1_beta.

I've added a new filter, named Contours / Extract foreground whose aim is to help extracting a foreground object in an opaque RGB image.
Instead of having to manually draw a selection around the object, with classical selection tools, this filter proposes an alternative approach :
You just have to define control points that can be either labeled 'background' or 'foreground' points. Then, the algorithm tries to automatically
deduce the whole shape of the foreground mask, from the position of the control points and the analysis of the image contours.
I won't enter too much in the algorithm details, but this is intended to save time when doing this tedious selection work.

Here is a video I've recorded to show how the extraction process work (in real-time!).
What you see here is the user adding green and red control points (resp. foreground and background points), and the algorithm is updating its estimated extraction mask.

www.youtube.com Video from : www.youtube.com


and two olders (from yesterday :p ) :

www.youtube.com Video from : www.youtube.com


and

www.youtube.com Video from : www.youtube.com


This also shows that now, a G'MIC filter in the GIMP plug-in can open interactive windows. This promises good things to come in the future :)
Hope you'll enjoy this little spoiler !


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 9:37 am  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
That's amazing. Cool demos. Wow! Nice job on that girl's hair. :yes

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 9:40 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
it sounds fantastic!

_________________
"Where am I ?"


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 9:43 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Looks very promising David! Awesome!
Thanks for another great tool!

Love that big interactive preview window. It's a huge step forward.
How do you switch from fg to bg points? Is there a keystroke combination and if yes, what is it?


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 9:57 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
K1TesseraEna : Background points are set with the right mouse button (or pressing key 'B'), while foreground points are set with the left mouse button (or key 'F').
You can also convert a foreground point to a background point at any time.


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 10:11 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Ronounours wrote:
K1TesseraEna : Background points are set with the right mouse button (or pressing key 'B'), while foreground points are set with the left mouse button (or key 'F').
You can also convert a foreground point to a background point at any time.


Thank you David!

So B and F or the mouse buttons. Cool. Getting beta version right away.


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 10:11 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I'm really interested by your feedback if you have some time to test !


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 10:17 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Will do. Do you want me to PM you or post it here?


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 10:18 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Cool stuff David. Very much looking forward to this feature when samj releases her next build. :)

And to K1Te; you Ninja's me. :ninja

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 10:37 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes, k1, please post here, I'll try to look at this thread regularly.


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 10:58 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Ronounours wrote:
Yes, k1, please post here, I'll try to look at this thread regularly.


So far getting this error attempting to open interactive window David (i'm on 64-bit Win 7)

Image

If anybody got the beta to work, please step forward, need your feedback!


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 11:00 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Which version of the beta did you take ? If older than yesterday, it can't work.
Is it one compiled by Samj ? I don't think she's already compiled the very latest version yet.


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 11:13 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
This one gmic_gimp_1.6.0.1_beta_win32 - marked >2 hours ago
no it's not samj's, from the SF


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 1:29 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Ha ok, so could you post a link to your image somewhere, i'd like to be able to reproduce the bug.


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 1:37 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Also, please try to refresh your filters again, I've done recent changes that must improve the whole thing (hopefully :p).


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 3:11 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Sorry, I was away 2 hrs.
I don't see extract FG after refreshing and here's the image

Image


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 3:17 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jun 02, 2013
Posts: 2075
That's incredible my friend.

_________________
Image


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 3:19 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I've just moved the filter to *Contours / Extract foreground*, that may explain why you don't see it anymore
(was in *Testing / Ronounours / * before..).

EDIT : I've just tested with your image, works like a charm :)


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 3:25 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Found it! Working!!! :jumpclap


Top
 Post subject: Re: [G'MIC] Smart foreground extraction tool
PostPosted: Fri Sep 12, 2014 3:29 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Haaaa, finally ! :p


Top
Post new topic Reply to topic  [ 256 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Gimp always "not responding" when I use the foreground select tool.

1

No new posts Attachment(s) Is there an updated version of Smart Remove Selection?

10

No new posts I'm confident some of you guys are smart enough to make GEGL filters

5

No new posts Change Foreground Colour

0

No new posts Change foreground and background color

2



* Login  



Powered by phpBB3 © phpBB Group