From eb48617a38600378531e316e2fa8ab35a02c2a4f Mon Sep 17 00:00:00 2001 From: Alexandre Prokoudine Date: Sun, 13 May 2012 06:41:19 +0400 Subject: [PATCH] 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 9e373a91de..c8791ea24f 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 4d1c5b147e..dd4d4dfcfb 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 1ba171dbd7..64cf7e10ab 100644 --- a/menus/image-menu.xml.in +++ b/menus/image-menu.xml.in @@ -620,7 +620,11 @@ - + + + + + diff --git a/plug-ins/common/edge-dog.c b/plug-ins/common/edge-dog.c index 8c75803696..31256a052e 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, "/Filters/Edge-Detect"); } static void