From bfdecd498240893e436298fe56d6b02f43174790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Tue, 14 Jul 2020 17:22:39 +0100 Subject: v0.6.2.1 * (Fix) Mutator: Erode was doing pixel dimming --- CHANGELOG.md | 4 ++++ UVtools.Core/Layer/Layer.cs | 22 ---------------------- UVtools.Core/UVtools.Core.csproj | 2 +- UVtools.GUI/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 7 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a7ae2..b73ef95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 14/07/2020 - v0.6.2.1 + +* (Fix) Mutator: Erode was doing pixel dimming + ## 14/07/2020 - v0.6.2.0 * (Add) PrusaSlicer Printer: Elegoo Mars 2 Pro diff --git a/UVtools.Core/Layer/Layer.cs b/UVtools.Core/Layer/Layer.cs index 592cbc1..8d84864 100644 --- a/UVtools.Core/Layer/Layer.cs +++ b/UVtools.Core/Layer/Layer.cs @@ -662,28 +662,6 @@ namespace UVtools.Core using (Mat dst = LayerMat) { CvInvoke.Erode(dst, dst, kernel, anchor, iterations, borderType, borderValue); - var matrix = new Matrix(2, 4) - { - [0, 0] = 255, [0, 1] = 255, [0, 2] = 125, [0, 3] = 255, - [1, 0] = 125, [1, 1] = 255, [1, 2] = 255, [1, 3] = 255 - //[0, 0] = 1, - //[0, 0] = 1, - }; - - Mat erode = new Mat(); - kernel = CvInvoke.GetStructuringElement(ElementShape.Rectangle, new Size(3, 3), anchor); - CvInvoke.Erode(dst, erode, kernel, anchor, 5, BorderType.Default, default); - Mat diff = new Mat(); - CvInvoke.Subtract(dst, erode, diff); - - Mat test = dst.CloneBlank(); - CvInvoke.Repeat(matrix, dst.Rows/ matrix.Rows, dst.Cols/ matrix.Cols, test); - - CvInvoke.BitwiseAnd(erode, test, dst); - - CvInvoke.Add(dst, diff, dst); - - //CvInvoke.CopyMakeBorder(LayerMat, dst, 5, 5, 5, 5, BorderType.Wrap); LayerMat = dst; } } diff --git a/UVtools.Core/UVtools.Core.csproj b/UVtools.Core/UVtools.Core.csproj index 517a003..f63e99f 100644 --- a/UVtools.Core/UVtools.Core.csproj +++ b/UVtools.Core/UVtools.Core.csproj @@ -10,7 +10,7 @@ https://github.com/sn4k3/UVtools https://github.com/sn4k3/UVtools MSLA/DLP, file analysis, repair, conversion and manipulation - 0.6.2.0 + 0.6.2.1 Copyright © 2020 PTRTECH UVtools.png AnyCPU;x64 diff --git a/UVtools.GUI/Properties/AssemblyInfo.cs b/UVtools.GUI/Properties/AssemblyInfo.cs index fabd5e0..12369f2 100644 --- a/UVtools.GUI/Properties/AssemblyInfo.cs +++ b/UVtools.GUI/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.6.2.0")] -[assembly: AssemblyFileVersion("0.6.2.0")] +[assembly: AssemblyVersion("0.6.2.1")] +[assembly: AssemblyFileVersion("0.6.2.1")] -- cgit v1.2.3