private void ExecuteKuwahara(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<double>(attribute);
}
if (arguments.Count == 0)
image.Kuwahara();
else if (OnlyContains(arguments, "radius", "sigma"))
image.Kuwahara((double)arguments["radius"], (double)arguments["sigma"]);
else
throw new ArgumentException("Invalid argument combination for 'kuwahara', allowed combinations are: [] [radius, sigma]");
}
private void ExecuteLevel(XmlElement element, MagickImage image)