diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-06-22 05:44:57 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-06-22 05:44:57 +0300 |
commit | 494c8d98dcd4261186b70048a62b9d87931d1f75 (patch) | |
tree | 25170451f98a1d1034c131488635de39e6de66f8 /UVtools.Core/Extensions/EmguExtensions.cs | |
parent | 3f559ce03d1a97d64543db588612e8cb04e73b0d (diff) |
complete Core
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r-- | UVtools.Core/Extensions/EmguExtensions.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs index fbf8374..381dc24 100644 --- a/UVtools.Core/Extensions/EmguExtensions.cs +++ b/UVtools.Core/Extensions/EmguExtensions.cs @@ -6,6 +6,7 @@ * of this license document, but changing it is not allowed. */ +using System.Drawing; using System.Runtime.InteropServices; using Emgu.CV; using Emgu.CV.CvEnum; @@ -24,5 +25,10 @@ namespace UVtools.Core.Extensions return data; } + + public static Mat CloneBlank(this Mat mat) + { + return new Mat(new Size(mat.Width, mat.Height), mat.Depth, mat.NumberOfChannels); + } } } |