GNOME Bugzilla – Bug 698189
[PATCH] Port the noise-spread plug-in to gegl ops
Last modified: 2013-11-17 11:48:22 UTC
Created attachment 241733 [details] [review] noise-spread-gegl-ops-patch Hi, I ported the noise-spread plug-in from GIMP (ie. plug-ins/common/noise-spread.c) to GEGL ops. The algorithm works fine, however I have some glitchs (ie. black pixels) which doesn't appear when I try with GIMP. Let submit a screenshot.
Created attachment 241734 [details] noise-spread with GIMP
Created attachment 241735 [details] noise-spread with GEGL
Created attachment 241820 [details] [review] noise-spread-gegl-ops-patch Hi, I fixed the bug previously mentionned, however now the output image is a little shifted. I'll investigate about that issue.
Created attachment 241844 [details] [review] noise-spread-gegl-ops-patch-final I fixed the bug mentionned above. Actually, the new random positions was not re-centered compared to the source image. Now, the patch works fine! :)
Using gegl_random_* instead of g_random_* would make it possible to get reproducable results from this operation. Most ops relying on random values in GEGL should be using the gegl_random_ family of functions.
The operation is already ported to GEGL. Samuel, thanks for your work anyway! I encourage you to have a look at http://wiki.gimp.org/index.php/Hacking:Porting_filters_to_GEGL to see operations already ported, in case you plan to do further work on the subject. Even though it may not be 100% up to date, so please double check in the source tree, and also feel free to get in touch with us on IRC (irc.gimp.net #gegl)