Post Reply 

[SOLVED]Weighted Blend in GEGL library

Oct 6, 2014, 07:27 (This post was last modified: Oct 6, 2014 07:48 by mIXpRo.)
Post: #1
[SOLVED]Weighted Blend in GEGL library
Can someone post a code example on how to use the "gegl:weighted-blend" operations in c Code not gegl (terminal) with xml files (filters) .
I started using gegl library , it fit my needs perfectly , but i can't seem to find a good documentations (the website is good but not detailed). Is there a forum or a place where you can ask for help in programming with gegl liberary ?

This is my trial of doing so :
Code:
GeglNode *gegl = gegl_node_new ();

GeglNode *display     = gegl_node_create_child (gegl, "gegl:display");
GeglNode *over        = gegl_node_new_child (gegl,"operation", "gegl:over",NULL);
GeglNode *c2g         = gegl_node_new_child (gegl,"operation", "gegl:c2g",NULL);
GeglNode *blur        = gegl_node_new_child (gegl,"operation", "gegl:gaussian-blur","std-    dev-x",1.0,"std-dev-y",1.0,NULL);


GeglNode *img         = gegl_node_new_child (gegl,"operation", "gegl:load","path","test.jpg",NULL);
GeglBuffer *buffer    = NULL;
GeglNode *sink        = gegl_node_new_child (gegl,"operation", "gegl:buffer-sink","buffer", &buffer,NULL);
gegl_node_link_many (img , c2g , sink, NULL);
gegl_node_process (sink);
GeglNode *blend       = gegl_node_new_child (gegl,"operation", "gegl:weighted-blend","aux",buffer,"value",0.0,NULL);

gegl_node_link_many(img, blend, display, NULL);
//gegl_node_process (blend);
//gegl_node_link_many(blend, display, NULL);
gegl_node_process (display);
The code above displays a blank screen , i don't know why .

a bit info , in this example i have a test.jpg image , i apply a c2g filter on it , then i try to blend it with itself without the c2g filter.
the c2g and gegl:buffer-sink parts work , meaning i can display the image with grayscale and the buffer is filled with the image in grayscale colors .


Im sorry if its not the right place to ask this question, but i kinda have nowhere else to it , stackoverflow didn't help , its just i thought since gimp is using this library its developers surely will know the answer .

thanks anyway .
Find all posts by this user
Quote this message in a reply
Oct 6, 2014, 07:43
Post: #2
RE: Weighted Blend in GEGL library
(Oct 6, 2014 07:27)mIXpRo Wrote:  ... its just i thought since gimp is using this library its developers surely will know the answer .

However there are no GIMP developers here, or on any of the GIMP forums that we know about.

Your best chance is to post your question on the GEGL developers mailing list: https://mail.gnome.org/mailman/listinfo/...loper-list

Kevin
Find all posts by this user
Quote this message in a reply
Oct 6, 2014, 07:47
Post: #3
RE: Weighted Blend in GEGL library
(Oct 6, 2014 07:43)paynekj Wrote:  
(Oct 6, 2014 07:27)mIXpRo Wrote:  ... its just i thought since gimp is using this library its developers surely will know the answer .

However there are no GIMP developers here, or on any of the GIMP forums that we know about.

Your best chance is to post your question on the GEGL developers mailing list: https://mail.gnome.org/mailman/listinfo/...loper-list

Kevin


i'll try that , sorry for the trouble.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Applying a GEGL function via commandline Bernhard Hiller 1 146 Sep 3, 2017 18:51
Last Post: ythgilb
  how to blend straight edges into background?? kshaeblue21 1 165 Aug 11, 2017 03:30
Last Post: ythgilb
Shocked Touching up black images (solved) vapblack 2 295 Aug 14, 2014 15:53
Last Post: vapblack
  How to drag an open pic to a layer in another pic? Not in single window mode. Solved! ianp5a 2 330 Aug 3, 2014 13:00
Last Post: ianp5a
  [Solved] Gimp vs moire Walen 7 840 May 28, 2014 09:57
Last Post: Walen

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS