[gimp/metadata-browser] Replaced old Difference of Gaussians, Laplace and Sobel filters with new GEGL operations



commit f1ff4a24c55d2f5f7f202787efba732f87394244
Author: Alexandre Prokoudine <alexandre prokoudine gmail com>
Date:   Sun May 13 06:41:19 2012 +0400

    Replaced old Difference of Gaussians, Laplace and Sobel filters with new GEGL operations

 app/actions/filters-actions.c |   20 +++++++++++++++++++-
 app/tools/gimpgegltool.c      |    3 +++
 menus/image-menu.xml.in       |    6 +++++-
 plug-ins/common/edge-dog.c    |    2 --
 4 files changed, 27 insertions(+), 4 deletions(-)
---
diff --git a/app/actions/filters-actions.c b/app/actions/filters-actions.c
index 9e373a9..c8791ea 100644
--- a/app/actions/filters-actions.c
+++ b/app/actions/filters-actions.c
@@ -85,7 +85,25 @@ static const GimpStringActionEntry filters_actions[] =
     NC_("filters-action", "Lens Distortion..."), NULL,
     NC_("filters-action", "Corrects lens distortion"),
     "gegl:lens-distortion",
-    NULL /* FIXME GIMP_HELP_FILTER_RIPPLE */ },
+    NULL /* FIXME GIMP_HELP_FILTER_LENS_DISTORTION */ },
+
+  { "filters-difference-of-gaussians", GIMP_STOCK_GEGL,
+    NC_("filters-action", "Difference of Gaussians..."), NULL,
+    NC_("filters-action", "Edge detection with control of edge thickness"),
+    "gegl:difference-of-gaussians",
+    NULL /* FIXME GIMP_HELP_FILTER_DIFFERENCE_OF_GAUSSIANS */ },
+
+  { "filters-laplace", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Laplace"), NULL,
+    NC_("filters-action", "High-resolution edge detection"),
+    "gegl:edge-laplace",
+    NULL /* FIXME GIMP_HELP_FILTER_LAPLACE */ },
+
+  { "filters-sobel", GIMP_STOCK_GEGL,
+    NC_("filters-action", "_Sobel..."), NULL,
+    NC_("filters-action", "Specialized direction-dependent edge-detection"),
+    "gegl:edge-sobel",
+    NULL /* FIXME GIMP_HELP_FILTER_SOBEL */ },
 
   { "filters-semi-flatten", GIMP_STOCK_GEGL,
     NC_("filters-action", "_Semi-Flatten..."), NULL,
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index 4d1c5b1..dd4d4df 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -116,7 +116,10 @@ gimp_gegl_tool_operation_blacklisted (const gchar *name,
     "gegl:colorize", /* in gimp */
     "gegl:contrast-curve",
     "gegl:convert-format",
+    "gegl:difference-of-gaussians", /* in gimp */
     "gegl:display",
+    "gegl:edge-laplace", /* in gimp */
+    "gegl:edge-sobel", /* in gimp */
     "gegl:fill-path",
     "gegl:gaussian-blur", /* in gimp */
     "gegl:grey", /* in gimp */
diff --git a/menus/image-menu.xml.in b/menus/image-menu.xml.in
index 1ba171d..64cf7e1 100644
--- a/menus/image-menu.xml.in
+++ b/menus/image-menu.xml.in
@@ -620,7 +620,11 @@
         <placeholder name="Glass" />
       </menu>
       <menu action="plug-in-noise-menu" name="Noise" />
-      <menu action="plug-in-edge-detect-menu" name="Edge-Detect" />
+      <menu action="plug-in-edge-detect-menu" name="Edge-Detect">
+        <menuitem action="filters-difference-of-gaussians" />
+        <menuitem action="filters-laplace" />
+        <menuitem action="filters-sobel" />
+      </menu>
       <menu action="plug-in-generic-menu" name="Generic" />
       <menu action="plug-in-combine-menu" name="Combine" />
       <menu action="plug-in-artistic-menu" name="Artistic" />
diff --git a/plug-ins/common/edge-dog.c b/plug-ins/common/edge-dog.c
index 8c75803..31256a0 100644
--- a/plug-ins/common/edge-dog.c
+++ b/plug-ins/common/edge-dog.c
@@ -144,8 +144,6 @@ query (void)
                           GIMP_PLUGIN,
                           G_N_ELEMENTS (args), 0,
                           args, NULL);
-
-  gimp_plugin_menu_register (PLUG_IN_PROC, "<Image>/Filters/Edge-Detect");
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]