Action5030.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using PaintDotNet.Data.Param;
  2. namespace PaintDotNet.Data.Action
  3. {
  4. /// <summary>
  5. /// 西格玛
  6. /// </summary>
  7. public class Action5030 : ParamObject
  8. {
  9. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  10. {
  11. return Adjust.SmoothIntent.SigemaFunction(src, this.Lists);
  12. }
  13. public Action5030()
  14. {
  15. this.MenuId = ActionType.Sigma;
  16. this.OpenImage = "current";
  17. //第一个参数
  18. OddNumber one = new OddNumber(3, 255);
  19. one.key = "KernelSize";
  20. one.name = PdnResources.GetString("Menu.ImageProcessing.smooth.Innercoreradius.text");
  21. one.initialValue = 3;
  22. one.value = 3;
  23. lists.Add(one);
  24. //第二个参数
  25. DecimalNumber two = new DecimalNumber((decimal)0.1, 127);
  26. two.key = "Sigma";
  27. two.name = PdnResources.GetString("Menu.Image.Sigma.Text");
  28. two.DecimalPlaces = 1;
  29. two.initialValue = 1;
  30. two.value = 1;
  31. lists.Add(two);
  32. }
  33. }
  34. }