12345678910111213141516171819202122232425262728293031323334353637383940 |
- using PaintDotNet.Data.Param;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 各向异性高斯滤波
- /// </summary>
- public class Action5031 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.SmoothIntent.GaussianFiltering(src, this.Lists);
- }
- public Action5031()
- {
- this.MenuId = ActionType.GaussianFiltering;
- this.OpenImage = "current";
- //16427
- //第一个参数
- DecimalNumber one = new DecimalNumber((decimal)0.1, 100);
- one.key = "SigmaX";
- one.name = PdnResources.GetString("Menu.Image.Sigma.Text")+"X";
- one.DecimalPlaces = 1;
- one.initialValue = 0.4;
- one.value = 0.4;
- lists.Add(one);
- //第二个参数
- DecimalNumber two = new DecimalNumber((decimal)0.1, 100);
- two.key = "SigmaY";
- two.name = PdnResources.GetString("Menu.Image.Sigma.Text")+"Y";
- two.DecimalPlaces = 1;
- two.initialValue = 0.4;
- two.value = 0.4;
- lists.Add(two);
- }
- }
- }
|