c2g, stress: improve reference compositions

parent 66081ae9
......@@ -339,6 +339,21 @@ process (GeglOperation *operation,
return TRUE;
}
static const gchar *composition =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gegl>"
"<node operation='gegl:c2g'>"
" <params>"
" <param name='radius'>200</param>"
" <param name='iterations'>90</param>"
" </params>"
"</node>"
"<node operation='gegl:load'>"
" <params>"
" <param name='path'>standard-input.png</param>"
" </params>"
"</node>"
"</gegl>";
static void
gegl_op_class_init (GeglOpClass *klass)
......@@ -364,6 +379,7 @@ gegl_op_class_init (GeglOpClass *klass)
gegl_operation_class_set_keys (operation_class,
"name", "gegl:c2g",
"categories", "enhance",
"reference-composition", composition,
"description",
_("Color to grayscale conversion, uses envelopes formed from spatial "
"color differences to perform color-feature preserving grayscale "
......
......@@ -173,6 +173,21 @@ process (GeglOperation *operation,
return TRUE;
}
static const gchar *composition =
"<?xml version='1.0' encoding='UTF-8'?>"
"<gegl>"
"<node operation='gegl:stress'>"
" <params>"
" <param name='radius'>200</param>"
" <param name='iterations'>90</param>"
" </params>"
"</node>"
"<node operation='gegl:load'>"
" <params>"
" <param name='path'>standard-input.png</param>"
" </params>"
"</node>"
"</gegl>";
static void
gegl_op_class_init (GeglOpClass *klass)
......@@ -193,8 +208,9 @@ gegl_op_class_init (GeglOpClass *klass)
operation_class->get_bounding_box = get_bounding_box;
gegl_operation_class_set_keys (operation_class,
"name" , "gegl:stress",
"categories" , "enhance",
"name", "gegl:stress",
"categories", "enhance",
"reference-composition", composition,
"description",
_("Spatio Temporal Retinex-like Envelope with Stochastic Sampling"),
NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment