Action5030.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Action5030 : ParamObject
  10. {
  11. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  12. {
  13. return Adjust.SmoothIntent.SigemaFunction(src, this.Lists);
  14. }
  15. public Action5030()
  16. {
  17. this.MenuId = ActionType.Sigma;
  18. this.OpenImage = "current";
  19. //第一个参数
  20. OddNumber one = new OddNumber(3, 255);
  21. one.key = "KernelSize";
  22. one.name = PdnResources.GetString("Menu.ImageProcessing.smooth.Innercoreradius.text");
  23. one.initialValue = 3;
  24. one.value = 3;
  25. lists.Add(one);
  26. //第二个参数
  27. DecimalNumber two = new DecimalNumber((decimal)0.1, 127);
  28. two.key = "Sigma";
  29. two.name = PdnResources.GetString("Menu.Image.Sigma.Text");
  30. two.DecimalPlaces = 1;
  31. two.initialValue = 1;
  32. two.value = 1;
  33. lists.Add(two);
  34. }
  35. }
  36. }