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:
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/EmguExtensions.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs
index 2eaa12a..a6aa974 100644
--- a/UVtools.Core/Extensions/EmguExtensions.cs
+++ b/UVtools.Core/Extensions/EmguExtensions.cs
@@ -252,7 +252,8 @@ namespace UVtools.Core.Extensions
public static Mat InitMat(Size size, int channels = 1, DepthType depthType = DepthType.Cv8U)
{
- var mat = new Mat(size, depthType, channels);
+ return Mat.Zeros(size.Height, size.Width, depthType, channels);
+ /*var mat = new Mat(size, depthType, channels);
switch (channels)
{
case 1:
@@ -266,7 +267,7 @@ namespace UVtools.Core.Extensions
break;
}
- return mat;
+ return mat;*/
}
public static Mat InitMat(Size size, MCvScalar scalar, int channels = 1, DepthType depthType = DepthType.Cv8U)