Action5013.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 Action5013 : ParamObject
  11. {
  12. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  13. {
  14. return Adjust.AdjustIntent.ColorBalanceFunction(src, this.Lists);
  15. }
  16. public Action5013()
  17. {
  18. this.MenuId = ActionType.ActionColorBalance;
  19. this.OpenImage = "current";
  20. //第一个参数
  21. IntegerNumber one = new IntegerNumber(-100, 100);
  22. one.key = "Red";
  23. one.name = PdnResources.GetString("Menu.hong.Text");
  24. one.initialValue = 0;
  25. one.value = 0;
  26. lists.Add(one);
  27. //第二个参数
  28. IntegerNumber two = new IntegerNumber(-100, 100);
  29. two.key = "Green";
  30. two.name = PdnResources.GetString("Menu.lv.Text");
  31. two.initialValue = 0;
  32. two.value = 0;
  33. lists.Add(two);
  34. //第三个参数
  35. IntegerNumber three = new IntegerNumber(-100, 100);
  36. three.key = "Blue";
  37. three.name = PdnResources.GetString("Menu.lan.Text");
  38. three.initialValue = 0;
  39. three.value = 0;
  40. lists.Add(three);
  41. }
  42. }
  43. }