Action5015.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using Resources;
  2. using SmartCoalApplication.Core;
  3. using SmartCoalApplication.Core.Param;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. namespace SmartCoalApplication.Data.Action
  9. {
  10. /// <summary>
  11. /// 色度/饱和度/亮度
  12. /// </summary>
  13. public class Action5015 : ParamObject
  14. {
  15. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  16. {
  17. return Adjust.AdjustIntent.BshTransferFunction(src, this.Lists);
  18. }
  19. public Action5015()
  20. {
  21. this.MenuId = ActionType.ActionHSB;
  22. this.OpenImage = "current";
  23. //第一个参数
  24. IntegerNumber one = new IntegerNumber(0, 200);
  25. one.key = "Hue";
  26. one.name = PdnResources.GetString("Menu.ImageProcessing.adjust.Chroma.text");
  27. one.initialValue = 100;
  28. one.value = 100;
  29. lists.Add(one);
  30. //第二个参数
  31. IntegerNumber two = new IntegerNumber(0, 200);
  32. two.key = "Saturation";
  33. two.name = PdnResources.GetString("Menu.saturation.text");
  34. two.initialValue = 100;
  35. two.value = 100;
  36. lists.Add(two);
  37. //第三个参数
  38. IntegerNumber three = new IntegerNumber(0, 200);
  39. three.key = "Brightness";
  40. three.name = PdnResources.GetString("Menu.luminance.text");
  41. three.initialValue = 100;
  42. three.value = 100;
  43. lists.Add(three);
  44. }
  45. }
  46. }