diff --git a/src/OpenCvSharp/Modules/dnn/Net.cs b/src/OpenCvSharp/Modules/dnn/Net.cs
index ed28d0e4a..77891ac01 100644
--- a/src/OpenCvSharp/Modules/dnn/Net.cs
+++ b/src/OpenCvSharp/Modules/dnn/Net.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
using System.Linq;
using OpenCvSharp.Internal;
using OpenCvSharp.Internal.Vectors;
@@ -23,6 +24,7 @@ namespace OpenCvSharp.Dnn
/// LayerId can store either layer name or layer id.
/// This class supports reference counting of its instances, i.e.copies point to the same instance.
///
+ [SuppressMessage("Microsoft.Design", "CA1724: Type names should not match namespaces")]
public class Net : DisposableCvObject
{
#region Init & Disposal
diff --git a/src/OpenCvSharp/Modules/highgui/Window.cs b/src/OpenCvSharp/Modules/highgui/Window.cs
index 5177a9946..453f726a0 100644
--- a/src/OpenCvSharp/Modules/highgui/Window.cs
+++ b/src/OpenCvSharp/Modules/highgui/Window.cs
@@ -37,7 +37,37 @@ public Window()
: this(DefaultName(), null, WindowFlags.AutoSize)
{
}
-
+
+ ///
+ /// Creates a window
+ ///
+ /// Name of the window which is used as window identifier and appears in the window caption.
+ public Window(string name)
+ : this(name, null, WindowFlags.AutoSize)
+ {
+ }
+
+ ///
+ /// Creates a window
+ ///
+ /// Name of the window which is used as window identifier and appears in the window caption.
+ /// Flags of the window. Currently the only supported flag is WindowMode.AutoSize.
+ /// If it is set, window size is automatically adjusted to fit the displayed image (see cvShowImage), while user can not change the window size manually.
+ public Window(string name, WindowFlags flags = WindowFlags.AutoSize)
+ : this(name, null, flags)
+ {
+ }
+
+ ///
+ /// Creates a window
+ ///
+ /// Name of the window which is used as window identifier and appears in the window caption.
+ /// Image to be shown.
+ public Window(string name, Mat image)
+ : this(name, image ?? throw new ArgumentNullException(nameof(image)), WindowFlags.AutoSize)
+ {
+ }
+
///
/// Creates a window
///