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>2021-05-04 07:07:04 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-05-04 07:07:04 +0300
commitb5575b3ef167d1c31c871b5ca9a70acfc9ddfa1c (patch)
tree730c27550db32bfbd41236034782188543800e25 /UVtools.Core/Extensions/EmguExtensions.cs
parent6d6be66ced23339f8d30f4aed2d32b83d14384af (diff)
v2.9.3v2.9.3
- (Upgrade) AvaloniaUI from 0.10.2 to 0.10.3 - (Change) PrusaSlicer printers: Set 'Light-Off Delay' and 'Bottom Light-Off Delay' to 0 as default to allow UVtools auto-compute the right value once open the file in - **Exposure time finder:** - Optimize layers by merge same position/exposure layers - Add a fence option to the zebra bars - Add a option to pattern the loaded model and generate multiple exposures on that - Allow to generate tests without the holes feature - Prevent from using more chamfers than the base height - Removed two of the largest holes - Hide not so often used 'Multiple brightness' and 'Multiple layer height' by default - Disable Anti-Aliasing by default - Change 'Part margin' from 1.5mm to 2.0mm - Change 'Multiple exposures - Bottom exposure step' default to 0 - Fix a error when generating tests with multiple exposures - Fix some typos - **XYZ accuracy test:** - Change 'Wall thickess' default from 2.5mm to 3.0mm - (Improvement) Allow compute print time without a lift sequence
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/EmguExtensions.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs
index 9ea852a..2806e43 100644
--- a/UVtools.Core/Extensions/EmguExtensions.cs
+++ b/UVtools.Core/Extensions/EmguExtensions.cs
@@ -220,6 +220,11 @@ namespace UVtools.Core.Extensions
return new byte[mat.GetLength()];
}
+ public static Mat New(this Mat mat)
+ {
+ return new(mat.Rows, mat.Cols, mat.Depth, mat.NumberOfChannels);
+ }
+
/// <summary>
/// Clone this <see cref="Mat"/> blanked (All zeros)
/// </summary>