diff options
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | UVtools.Core/Layer/Layer.cs | 22 | ||||
-rw-r--r-- | UVtools.Core/UVtools.Core.csproj | 2 | ||||
-rw-r--r-- | 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<byte>(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 @@ <RepositoryUrl>https://github.com/sn4k3/UVtools</RepositoryUrl> <PackageProjectUrl>https://github.com/sn4k3/UVtools</PackageProjectUrl> <Description>MSLA/DLP, file analysis, repair, conversion and manipulation</Description> - <Version>0.6.2.0</Version> + <Version>0.6.2.1</Version> <Copyright>Copyright © 2020 PTRTECH</Copyright> <PackageIcon>UVtools.png</PackageIcon> <Platforms>AnyCPU;x64</Platforms> 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")] |