diff options
Diffstat (limited to 'UVtools.Core/Operations/Operation.cs')
-rw-r--r-- | UVtools.Core/Operations/Operation.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/Operations/Operation.cs b/UVtools.Core/Operations/Operation.cs index 5cb7cad..f8b9b10 100644 --- a/UVtools.Core/Operations/Operation.cs +++ b/UVtools.Core/Operations/Operation.cs @@ -405,7 +405,7 @@ namespace UVtools.Core.Operations { if (!HaveMask) return null; - var mask = mat.CloneBlank(); + var mask = EmguExtensions.InitMat(mat.Size); using VectorOfVectorOfPoint vec = new(points); CvInvoke.DrawContours(mask, vec, -1, EmguExtensions.WhiteByte, -1); return GetRoiOrDefault(mask); |