diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationInfill.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationInfill.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.Core/Operations/OperationInfill.cs b/UVtools.Core/Operations/OperationInfill.cs index 9085ad3..9d0c4df 100644 --- a/UVtools.Core/Operations/OperationInfill.cs +++ b/UVtools.Core/Operations/OperationInfill.cs @@ -182,7 +182,7 @@ public sealed class OperationInfill : Operation public override bool Execute(Mat mat, params object[]? arguments) { if (arguments is null || arguments.Length < 1) return false; - var anchor = new Point(-1, -1); + var kernel = EmguExtensions.Kernel3x3Rectangle; uint index = Convert.ToUInt32(arguments[0]); uint layerIndex = index - LayerIndexStart; @@ -465,7 +465,7 @@ public sealed class OperationInfill : Operation //patternMask.Save("D:\\pattern.png"); - CvInvoke.Erode(target, erode, kernel, anchor, WallThickness, BorderType.Reflect101, + CvInvoke.Erode(target, erode, kernel, EmguExtensions.AnchorCenter, WallThickness, BorderType.Reflect101, default); CvInvoke.Subtract(target, erode, diff); |