| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using Resources;
- using SmartCoalApplication.Core;
- using SmartCoalApplication.Core.Param;
- namespace SmartCoalApplication.Data.Action
- {
- /// <summary>
- /// 低通滤波
- /// </summary>
- public class Action5032 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.SmoothIntent.LowPassFiltering(src, this.Lists);
- }
- public Action5032()
- {
- this.MenuId = ActionType.LowPassFiltering;
- this.OpenImage = "current";
- //第一个参数
- OddNumber one = new OddNumber(3, 255);
- one.key = "KernelSizeX";
- one.name = PdnResources.GetString("Menu.radius.text")+"X";
- one.initialValue = 3;
- one.value = 3;
- lists.Add(one);
- //第二个参数
- OddNumber two = new OddNumber(3, 255);
- two.key = "KernelSizeX";
- two.name = PdnResources.GetString("Menu.radius.text")+"Y";
- two.initialValue = 3;
- two.value = 3;
- lists.Add(two);
- //第三个参数
- IntegerNumber three = new IntegerNumber(1, 100);
- three.key = "Count";
- three.name = PdnResources.GetString("Menu.numberoftimes.text");
- three.initialValue = 1;
- three.value = 1;
- lists.Add(three);
- }
- }
- }
|