Action5036.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 Action5036 : ParamObject
  10. {
  11. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  12. {
  13. return Adjust.SmoothIntent.WaveletDenoising(src, this.Lists);
  14. }
  15. public Action5036()
  16. {
  17. this.MenuId = ActionType.WaveletDenoising;
  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. //IntegerNumber one = new IntegerNumber(0, 255);
  28. //one.key = "Threshold";
  29. //one.name = PdnResources.GetString("Menu.Threshold.text");
  30. //one.initialValue = 0;
  31. //one.value = 0;
  32. //lists.Add(one);
  33. }
  34. }
  35. }