using PaintDotNet.Data.Param; namespace PaintDotNet.Data.Action { /// /// 中值滤波 /// public class Action5033 : ParamObject { public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src) { return Adjust.SmoothIntent.MedianFiltering(src, this.Lists); } public Action5033() { this.MenuId = ActionType.MedianFiltering; this.OpenImage = "current"; //第一个参数 OddNumber one = new OddNumber(3, 255); one.key = "KernelSize"; one.name = PdnResources.GetString("Menu.radius.text"); one.initialValue = 3; one.value = 3; lists.Add(one); } } }