C# 클래스 OpenCvSharp.Window

Wrapper of HighGUI window
상속: DisposableObject
파일 보기 프로젝트 열기: shimat/opencvsharp 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DefaultName string

공개 메소드들

메소드 설명
Close ( ) : void

Destroys this window.

CreateTrackbar ( string name, CvTrackbarCallback2 callback ) : OpenCvSharp.CvTrackbar

Creates the trackbar and attaches it to this window

CreateTrackbar ( string name, int value, int max, CvTrackbarCallback2 callback ) : OpenCvSharp.CvTrackbar

Creates the trackbar and attaches it to this window

CreateTrackbar2 ( string name, int value, int max, CvTrackbarCallback2 callback, object userdata ) : OpenCvSharp.CvTrackbar

Creates the trackbar and attaches it to this window

DestroyAllWindows ( ) : void

Destroys all the opened HighGUI windows.

DisplayOverlay ( string text, int delayms ) : void

Display text on the window's image as an overlay for delay milliseconds. This is not editing the image's data. The text is display on the top of the image.

DisplayStatusBar ( string text, int delayms ) : void

GetProperty ( WindowProperty propId ) : double

Get Property of the window

GetWindowByName ( string name ) : Window

Retrieves a created window by name

LoadWindowParameters ( ) : void

Load parameters of the window.

Move ( int x, int y ) : void

Sets window position

Resize ( int width, int height ) : void

Sets window size

SaveWindowParameters ( ) : void

Save parameters of the window.

SetProperty ( WindowProperty propId, double propValue ) : void

Set Property of the window

ShowImage ( OpenCvSharp.Mat img ) : void

Shows the image in this window

ShowImages ( ) : void

ShowImages ( IEnumerable images, IEnumerable names ) : void

WaitKey ( ) : int

Waits for a pressed key

WaitKey ( int delay ) : int

Waits for a pressed key

Window ( ) : System

Creates a window with a random name

Window ( OpenCvSharp.Mat image ) : System

Creates a window with a random name and a specified image

Window ( WindowMode flags, OpenCvSharp.Mat image ) : System

Creates a window with a specified image and flag

Window ( string name ) : System

Creates a window

Window ( string name, OpenCvSharp.Mat image ) : System

Creates a window

Window ( string name, WindowMode flags ) : System

Creates a window

Window ( string name, WindowMode flags, OpenCvSharp.Mat image ) : System

Creates a window

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
DefaultName ( ) : string

ウィンドウ名が指定されなかったときに、適当な名前を作成して返す.

메소드 상세

Close() 공개 메소드

Destroys this window.
public Close ( ) : void
리턴 void

CreateTrackbar() 공개 메소드

Creates the trackbar and attaches it to this window
public CreateTrackbar ( string name, CvTrackbarCallback2 callback ) : OpenCvSharp.CvTrackbar
name string Name of created trackbar.
callback CvTrackbarCallback2 the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);
리턴 OpenCvSharp.CvTrackbar

CreateTrackbar() 공개 메소드

Creates the trackbar and attaches it to this window
public CreateTrackbar ( string name, int value, int max, CvTrackbarCallback2 callback ) : OpenCvSharp.CvTrackbar
name string Name of created trackbar.
value int The position of the slider
max int Maximal position of the slider. Minimal position is always 0.
callback CvTrackbarCallback2 the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);
리턴 OpenCvSharp.CvTrackbar

CreateTrackbar2() 공개 메소드

Creates the trackbar and attaches it to this window
public CreateTrackbar2 ( string name, int value, int max, CvTrackbarCallback2 callback, object userdata ) : OpenCvSharp.CvTrackbar
name string Name of created trackbar.
value int The position of the slider
max int Maximal position of the slider. Minimal position is always 0.
callback CvTrackbarCallback2 the function to be called every time the slider changes the position. This function should be prototyped as void Foo(int);
userdata object
리턴 OpenCvSharp.CvTrackbar

DestroyAllWindows() 공개 정적인 메소드

Destroys all the opened HighGUI windows.
public static DestroyAllWindows ( ) : void
리턴 void

DisplayOverlay() 공개 메소드

Display text on the window's image as an overlay for delay milliseconds. This is not editing the image's data. The text is display on the top of the image.
public DisplayOverlay ( string text, int delayms ) : void
text string Overlay text to write on the window’s image
delayms int Delay to display the overlay text. If this function is called before the previous overlay text time out, the timer is restarted and the text updated. . If this value is zero, the text never disapers.
리턴 void

DisplayStatusBar() 공개 메소드

public DisplayStatusBar ( string text, int delayms ) : void
text string Text to write on the window’s statusbar
delayms int Delay to display the text. If this function is called before the previous text time out, the timer is restarted and the text updated. If this value is zero, the text never disapers.
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. /// If false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed. ///
리턴 void

GetProperty() 공개 메소드

Get Property of the window
public GetProperty ( WindowProperty propId ) : double
propId WindowProperty Property identifier
리턴 double

GetWindowByName() 공개 정적인 메소드

Retrieves a created window by name
public static GetWindowByName ( string name ) : Window
name string
리턴 Window

LoadWindowParameters() 공개 메소드

Load parameters of the window.
public LoadWindowParameters ( ) : void
리턴 void

Move() 공개 메소드

Sets window position
public Move ( int x, int y ) : void
x int New x coordinate of top-left corner
y int New y coordinate of top-left corner
리턴 void

Resize() 공개 메소드

Sets window size
public Resize ( int width, int height ) : void
width int New width
height int New height
리턴 void

SaveWindowParameters() 공개 메소드

Save parameters of the window.
public SaveWindowParameters ( ) : void
리턴 void

SetProperty() 공개 메소드

Set Property of the window
public SetProperty ( WindowProperty propId, double propValue ) : void
propId WindowProperty Property identifier
propValue double New value of the specified property
리턴 void

ShowImage() 공개 메소드

Shows the image in this window
public ShowImage ( OpenCvSharp.Mat img ) : void
img OpenCvSharp.Mat Image to be shown.
리턴 void

ShowImages() 공개 정적인 메소드

public static ShowImages ( ) : void
리턴 void

ShowImages() 공개 정적인 메소드

public static ShowImages ( IEnumerable images, IEnumerable names ) : void
images IEnumerable
names IEnumerable
리턴 void

WaitKey() 공개 정적인 메소드

Waits for a pressed key
public static WaitKey ( ) : int
리턴 int

WaitKey() 공개 정적인 메소드

Waits for a pressed key
public static WaitKey ( int delay ) : int
delay int Delay in milliseconds.
리턴 int

Window() 공개 메소드

Creates a window with a random name
public Window ( ) : System
리턴 System

Window() 공개 메소드

Creates a window with a random name and a specified image
public Window ( OpenCvSharp.Mat image ) : System
image OpenCvSharp.Mat
리턴 System

Window() 공개 메소드

Creates a window with a specified image and flag
public Window ( WindowMode flags, OpenCvSharp.Mat image ) : System
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
리턴 System

Window() 공개 메소드

Creates a window
public Window ( string name ) : System
name string Name of the window which is used as window identifier and appears in the window caption.
리턴 System

Window() 공개 메소드

Creates a window
public Window ( string name, OpenCvSharp.Mat image ) : System
name string Name of the window which is used as window identifier and appears in the window caption.
image OpenCvSharp.Mat Image to be shown.
리턴 System

Window() 공개 메소드

Creates a window
public Window ( string name, WindowMode flags ) : 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.
리턴 System

Window() 공개 메소드

Creates a window
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