private void ExecuteHoughLine(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Int32>(attribute);
}
if (arguments.Count == 0)
image.HoughLine();
else if (OnlyContains(arguments, "width", "height", "threshold"))
image.HoughLine((Int32)arguments["width"], (Int32)arguments["height"], (Int32)arguments["threshold"]);
else
throw new ArgumentException("Invalid argument combination for 'houghLine', allowed combinations are: [] [width, height, threshold]");
}
private void ExecuteImplode(XmlElement element, MagickImage image)