Action5033.cs 839 B

1234567891011121314151617181920212223242526272829303132
  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 Action5033 : ParamObject
  10. {
  11. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  12. {
  13. return Adjust.SmoothIntent.MedianFiltering(src, this.Lists);
  14. }
  15. public Action5033()
  16. {
  17. this.MenuId = ActionType.MedianFiltering;
  18. this.OpenImage = "current";
  19. //第一个参数
  20. OddNumber one = new OddNumber(3, 255);
  21. one.key = "KernelSize";
  22. one.name = PdnResources.GetString("Menu.radius.text");
  23. one.initialValue = 3;
  24. one.value = 3;
  25. lists.Add(one);
  26. }
  27. }
  28. }