diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-05-04 07:07:04 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-05-04 07:07:04 +0300 |
commit | b5575b3ef167d1c31c871b5ca9a70acfc9ddfa1c (patch) | |
tree | 730c27550db32bfbd41236034782188543800e25 /UVtools.Core/Extensions/EmguExtensions.cs | |
parent | 6d6be66ced23339f8d30f4aed2d32b83d14384af (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.cs | 5 |
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> |