using PaintDotNet.Base; using PaintDotNet.Base.Enum; using PaintDotNet.Base.Functionodel; using PaintDotNet.Data.Param; using System.Collections.Generic; namespace PaintDotNet.Data.Action { /// /// 污迹处理 /// public class Action1215 : ParamObject { public override OpenCvSharp.Mat PerformMaskCal(OpenCvSharp.Mat src, OpenCvSharp.Mat mask) { return Adjust.MorphologyIntent.SmudgeTreatment(src, this.Lists, mask); } public Action1215() { this.MenuId = ActionType.SmudgeTreatment; IntegerNumber integerNumber = new IntegerNumber(1, 255); integerNumber.key = "InpaintRadius"; integerNumber.name = PdnResources.GetString("Menu.tool.Stainprocessing.Processingfactor.text"); integerNumber.initialValue = 5.0; integerNumber.Value = 5.0; lists.Add(integerNumber); } } }