1234567891011121314151617181920212223242526272829303132333435363738 |
- using PaintDotNet.Data.Param;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 西格玛
- /// </summary>
- public class Action5030 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.SmoothIntent.SigemaFunction(src, this.Lists);
- }
- public Action5030()
- {
- this.MenuId = ActionType.Sigma;
- this.OpenImage = "current";
- //第一个参数
- OddNumber one = new OddNumber(3, 255);
- one.key = "KernelSize";
- one.name = PdnResources.GetString("Menu.ImageProcessing.smooth.Innercoreradius.text");
- one.initialValue = 3;
- one.value = 3;
- lists.Add(one);
- //第二个参数
- DecimalNumber two = new DecimalNumber((decimal)0.1, 127);
- two.key = "Sigma";
- two.name = PdnResources.GetString("Menu.Image.Sigma.Text");
- two.DecimalPlaces = 1;
- two.initialValue = 1;
- two.value = 1;
- lists.Add(two);
- }
- }
- }
|