123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using PaintDotNet.Data.Param;
- namespace PaintDotNet.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);
- }
- }
- }
|