public Window ( string name, WindowMode flags, OpenCvSharp.Mat image ) : System | ||
name | string | Name of the window which is used as window identifier and appears in the window caption. |
flags | WindowMode | 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. |
image | OpenCvSharp.Mat | Image to be shown. |
리턴 | System |
public Window(string name, WindowMode flags, Mat image)
{
if (name == null)
throw new ArgumentNullException(nameof(name));
this.name = name;
NativeMethods.highgui_namedWindow(name, (int) flags);
this.image = image;
ShowImage(image);
trackbars = new Dictionary<string, CvTrackbar>();
if (!Windows.ContainsKey(name))
{
Windows.Add(name, this);
}
this.callbackHandle = null;
}
Window::Window ( ) : System | |
Window::Window ( OpenCvSharp.Mat image ) : System | |
Window::Window ( WindowMode flags, OpenCvSharp.Mat image ) : System | |
Window::Window ( string name ) : System | |
Window::Window ( string name, OpenCvSharp.Mat image ) : System | |
Window::Window ( string name, WindowMode flags ) : System |