Action5020.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Resources;
  2. using SmartCoalApplication.Core;
  3. using SmartCoalApplication.Core.Param;
  4. using System.Collections.Generic;
  5. namespace SmartCoalApplication.Data.Action
  6. {
  7. /// <summary>
  8. /// 描绘
  9. /// </summary>
  10. public class Action5020 : ParamObject
  11. {
  12. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  13. {
  14. return Adjust.AdjustIntent.PortrayFunction(src, this.Lists);
  15. }
  16. public Action5020()
  17. {
  18. this.MenuId = ActionType.ActionPortray;
  19. this.OpenImage = "current";
  20. //第一个参数
  21. IntegerNumber one = new IntegerNumber(0, 255); //猜测最大是100->>255
  22. one.key = "Threshold";
  23. one.name = PdnResources.GetString("Menu.Threshold.text");
  24. one.initialValue = 10/*100*/;//初始值待确认
  25. one.value = 10/*100*/;
  26. lists.Add(one);
  27. //第二个参数
  28. OddNumber two = new OddNumber(3, 99/*100*/); //最大值待确认 49for example
  29. two.key = "Size";
  30. two.name = PdnResources.GetString("Menu.sizeed.text");
  31. two.initialValue = 15/*49*/;//初始值待确认
  32. two.value = 15/*49*/;
  33. lists.Add(two);
  34. }
  35. }
  36. }