Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2020-07-14 19:22:39 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2020-07-14 19:22:39 +0300
commitbfdecd498240893e436298fe56d6b02f43174790 (patch)
tree53c0f94df85c7b7927ad8cdd3a55f57607650607
parenta169d4f8556f4d3375a22d34e5809e1bc41d82a1 (diff)
v0.6.2.1v0.6.2.1
* (Fix) Mutator: Erode was doing pixel dimming
-rw-r--r--CHANGELOG.md4
-rw-r--r--UVtools.Core/Layer/Layer.cs22
-rw-r--r--UVtools.Core/UVtools.Core.csproj2
-rw-r--r--UVtools.GUI/Properties/AssemblyInfo.cs4
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")]