Action5031.cs 1.2 KB

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