RSS/Atom feed Twitter
Site is read-only, email is disabled

get mouse feedback within plug-in?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

get mouse feedback within plug-in? haenselmann@informatik.uni-mannheim.de 11 Apr 18:05
  get mouse feedback within plug-in? Torsten Neuer 11 Apr 18:28
   get mouse feedback within plug-in? Daniel Hornung 11 Apr 20:36
    get mouse feedback within plug-in? haenselmann@informatik.uni-mannheim.de 11 Apr 23:43
     get mouse feedback within plug-in? Sven Neumann 12 Apr 02:42
haenselmann@informatik.uni-mannheim.de
2008-04-11 18:05:00 UTC (about 17 years ago)

get mouse feedback within plug-in?

Dear all,

recently, I implemented an alpha-matting algorithm for image segmentation and I feel that it works pretty well so I wanted to write a gimp plug-in. Here is a little homepage for the project:

http://www.informatik.uni-mannheim.de/pi4/projects/image_matting/

The current application needs interactive user-input with the mouse. So far I have not found out how gimp could inform a plug-in about mouse-movements (like the current cursor position) in a drawable. Is a plug-in generally suitable for the task or how could I implement such a tool? (I read the little tutorial on developer.gimp.org. More how-tos would be welcome as well.)

Thanks in advance,

Thomas

Torsten Neuer
2008-04-11 18:28:56 UTC (about 17 years ago)

get mouse feedback within plug-in?

Hi,

The current application needs interactive user-input with the mouse. So far I have not found out how gimp could inform a plug-in about mouse-movements (like the current cursor position) in a drawable. Is a plug-in generally suitable for the task or how could I implement such a tool? (I read the little tutorial on developer.gimp.org. More how-tos would be welcome as well.)

From what you write and what it looks like on your project page, you should probably write a tool instead of a plugin (you may find fitting examples under gimp-2.4.5/app/tools). Also, you could then use any brush available to the Gimp.

Torsten

Daniel Hornung
2008-04-11 20:36:32 UTC (about 17 years ago)

get mouse feedback within plug-in?

On Friday 11 April 2008, Torsten Neuer wrote:

Hi,

The current application needs interactive user-input with the mouse. So far I have not found out how gimp could inform a plug-in about mouse-movements (like the current cursor position) in a drawable. Is a plug-in generally suitable for the task or how could I implement such a tool? (I read the little tutorial on developer.gimp.org. More how-tos would be welcome as well.)

From what you write and what it looks like on your project page, you should probably write a tool instead of a plugin (you may find fitting examples under gimp-2.4.5/app/tools). Also, you could then use any brush available to the Gimp.

Torsten

Just have a look at the current foreground selection tool (since GIMP 2.4), probably you can use much of its design or at least user interface. Also make sure that you don't accidentally use the same algorithm ;-) Since the usage seems to be similar, maybe this could even be made an alternative choosable algorithm there?

Daniel

haenselmann@informatik.uni-mannheim.de
2008-04-11 23:43:23 UTC (about 17 years ago)

get mouse feedback within plug-in?

On Fri, Apr 11, 2008 at 08:36:32PM +0200, Daniel Hornung wrote:

(...)

From what you write and what it looks like on your project page, you should probably write a tool instead of a plugin (you may find fitting examples under gimp-2.4.5/app/tools). Also, you could then use any brush available to the Gimp.

Torsten

Just have a look at the current foreground selection tool (since GIMP 2.4), probably you can use much of its design or at least user interface. Also make sure that you don't accidentally use the same algorithm ;-) Since the usage seems to be similar, maybe this could even be made an alternative choosable algorithm there?

Daniel

Thanks for your hints. I'll try to understand what a tools is at the week-end. Concerning the algorithm, I actually wondered why such an alpha-matting approach was not implemented before. The most recent thing I've seen on in gimp is a graph-cut approach which I consider to be among the most advanced approaches available at the moment.

Alpha-matting is kind of orthogonal to segmentation. At least in my version, it requires the user to define what is to be segmented (a very rough silhouette) but then, the results are sometimes of very high quality, especially for fuzzy objects because an individual alpha values is calculated for every pixel, individually. This is something that Photoshop does but which I have not yet seem on Gimp.

BTW: I tried to avoid any possible patent issues in that area. Did you ever get feedback or into trouble with Adobe?

Thomas

_______________________________________________ Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Sven Neumann
2008-04-12 02:42:36 UTC (about 17 years ago)

get mouse feedback within plug-in?

Hi,

On Fri, 2008-04-11 at 23:43 +0200, haenselmann@informatik.uni-mannheim.de wrote:

Alpha-matting is kind of orthogonal to segmentation. At least in my version, it requires the user to define what is to be segmented (a very rough silhouette) but then, the results are sometimes of very high quality, especially for fuzzy objects because an individual alpha values is calculated for every pixel, individually. This is something that Photoshop does but which I have not yet seem on Gimp.

This sounds like something that would be nice to have as a post-processing step in the SIOX Foreground Selection tool. Have you had a look at the refinement brush that the SIOX guys have suggested? Sounds similar to your approach and still awaits implementation in GIMP. So far we don't have anyone working on it, even though most of the code is already in place.

Sven