Action5031.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using PaintDotNet.Data.Param;
  2. namespace PaintDotNet.Data.Action
  3. {
  4. /// <summary>
  5. /// 各向异性高斯滤波
  6. /// </summary>
  7. public class Action5031 : ParamObject
  8. {
  9. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  10. {
  11. return Adjust.SmoothIntent.GaussianFiltering(src, this.Lists);
  12. }
  13. public Action5031()
  14. {
  15. this.MenuId = ActionType.GaussianFiltering;
  16. this.OpenImage = "current";
  17. //16427
  18. //第一个参数
  19. DecimalNumber one = new DecimalNumber((decimal)0.1, 100);
  20. one.key = "SigmaX";
  21. one.name = PdnResources.GetString("Menu.Image.Sigma.Text")+"X";
  22. one.DecimalPlaces = 1;
  23. one.initialValue = 0.4;
  24. one.value = 0.4;
  25. lists.Add(one);
  26. //第二个参数
  27. DecimalNumber two = new DecimalNumber((decimal)0.1, 100);
  28. two.key = "SigmaY";
  29. two.name = PdnResources.GetString("Menu.Image.Sigma.Text")+"Y";
  30. two.DecimalPlaces = 1;
  31. two.initialValue = 0.4;
  32. two.value = 0.4;
  33. lists.Add(two);
  34. }
  35. }
  36. }