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

This commit is contained in:
Alexandre Prokoudine
2012-05-13 06:41:19 +04:00
parent ac85c84a0f
commit eb48617a38
4 changed files with 27 additions and 4 deletions

View File

@ -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,

View File

@ -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 */

View File

@ -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" />

View File

@ -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