123456789101112131415161718192021222324252627282930 |
- using PaintDotNet.Data.Param;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 高斯模糊
- /// </summary>
- public class Action5034 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.SmoothIntent.GaussianBlur(src, this.Lists);
- }
- public Action5034()
- {
- this.MenuId = ActionType.GaussianBlur;
- 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);
- }
- }
- }
|