| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Resources;
- using SmartCoalApplication.Core;
- using SmartCoalApplication.Core.Param;
- using System.Collections.Generic;
- namespace SmartCoalApplication.Data.Action
- {
- /// <summary>
- /// 色彩平衡
- /// </summary>
- public class Action5013 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.AdjustIntent.ColorBalanceFunction(src, this.Lists);
- }
- public Action5013()
- {
- this.MenuId = ActionType.ActionColorBalance;
- this.OpenImage = "current";
- //第一个参数
- IntegerNumber one = new IntegerNumber(-100, 100);
- one.key = "Red";
- one.name = PdnResources.GetString("Menu.hong.Text");
- one.initialValue = 0;
- one.value = 0;
- lists.Add(one);
- //第二个参数
- IntegerNumber two = new IntegerNumber(-100, 100);
- two.key = "Green";
- two.name = PdnResources.GetString("Menu.lv.Text");
- two.initialValue = 0;
- two.value = 0;
- lists.Add(two);
- //第三个参数
- IntegerNumber three = new IntegerNumber(-100, 100);
- three.key = "Blue";
- three.name = PdnResources.GetString("Menu.lan.Text");
- three.initialValue = 0;
- three.value = 0;
- lists.Add(three);
- }
- }
- }
|