Flags related creating and manipulating HighGUI windows and mouse events#
Detailed Description#
Enumerations#
enum cv::MouseEventFlags {
cv::EVENT_FLAG_LBUTTON = 1,
cv::EVENT_FLAG_RBUTTON = 2,
cv::EVENT_FLAG_MBUTTON = 4,
cv::EVENT_FLAG_CTRLKEY = 8,
cv::EVENT_FLAG_SHIFTKEY = 16,
cv::EVENT_FLAG_ALTKEY = 32
}Mouse Event Flags see cv::MouseCallback. View details
enum cv::MouseEventTypes {
cv::EVENT_MOUSEMOVE = 0,
cv::EVENT_LBUTTONDOWN = 1,
cv::EVENT_RBUTTONDOWN = 2,
cv::EVENT_MBUTTONDOWN = 3,
cv::EVENT_LBUTTONUP = 4,
cv::EVENT_RBUTTONUP = 5,
cv::EVENT_MBUTTONUP = 6,
cv::EVENT_LBUTTONDBLCLK = 7,
cv::EVENT_RBUTTONDBLCLK = 8,
cv::EVENT_MBUTTONDBLCLK = 9,
cv::EVENT_MOUSEWHEEL = 10,
cv::EVENT_MOUSEHWHEEL = 11
}Mouse Events see cv::MouseCallback. View details
enum cv::WindowFlags {
cv::WINDOW_NORMAL = 0x00000000,
cv::WINDOW_AUTOSIZE = 0x00000001,
cv::WINDOW_OPENGL = 0x00001000,
cv::WINDOW_FULLSCREEN = 1,
cv::WINDOW_FREERATIO = 0x00000100,
cv::WINDOW_KEEPRATIO = 0x00000000,
cv::WINDOW_GUI_EXPANDED =0x00000000,
cv::WINDOW_GUI_NORMAL = 0x00000010
}Flags for cv::namedWindow. View details
enum cv::WindowPropertyFlags {
cv::WND_PROP_FULLSCREEN = 0,
cv::WND_PROP_AUTOSIZE = 1,
cv::WND_PROP_ASPECT_RATIO = 2,
cv::WND_PROP_OPENGL = 3,
cv::WND_PROP_VISIBLE = 4,
cv::WND_PROP_TOPMOST = 5,
cv::WND_PROP_VSYNC = 6
}Flags for cv::setWindowProperty / cv::getWindowProperty. View details
Enumeration Type Documentation#
MouseEventFlags#
enum cv::MouseEventFlags
#include <opencv2/highgui.hpp>
Mouse Event Flags see cv::MouseCallback.
Enumerator:
|
indicates that the left mouse button is down. |
|
indicates that the right mouse button is down. |
|
indicates that the middle mouse button is down. |
|
indicates that CTRL Key is pressed. |
|
indicates that SHIFT Key is pressed. |
|
indicates that ALT Key is pressed. |
MouseEventTypes#
enum cv::MouseEventTypes
#include <opencv2/highgui.hpp>
Mouse Events see cv::MouseCallback.
Enumerator:
|
indicates that the mouse pointer has moved over the window. |
|
indicates that the left mouse button is pressed. |
|
indicates that the right mouse button is pressed. |
|
indicates that the middle mouse button is pressed. |
|
indicates that left mouse button is released. |
|
indicates that right mouse button is released. |
|
indicates that middle mouse button is released. |
|
indicates that left mouse button is double clicked. |
|
indicates that right mouse button is double clicked. |
|
indicates that middle mouse button is double clicked. |
|
positive and negative values mean forward and backward scrolling, respectively. |
|
positive and negative values mean right and left scrolling, respectively. |
WindowFlags#
enum cv::WindowFlags
#include <opencv2/highgui.hpp>
Flags for cv::namedWindow.
Enumerator:
|
the user can resize the window (no constraint) / also use to switch a fullscreen window to a normal size. |
|
the user cannot resize the window, the size is constrainted by the image displayed. |
|
window with opengl support. |
|
change the window to fullscreen. |
|
the image expends as much as it can (no ratio constraint). |
|
the ratio of the image is respected. |
|
status bar and tool bar |
|
old fashious way |
WindowPropertyFlags#
#include <opencv2/highgui.hpp>
Flags for cv::setWindowProperty / cv::getWindowProperty.
Enumerator:
|
fullscreen property (can be WINDOW_NORMAL or WINDOW_FULLSCREEN). |
|
autosize property (can be WINDOW_NORMAL or WINDOW_AUTOSIZE). |
|
window’s aspect ration (can be set to WINDOW_FREERATIO or WINDOW_KEEPRATIO). |
|
opengl support. |
|
checks whether the window exists and is visible |
|
property to toggle normal window being topmost or not |
|
enable or disable VSYNC (in OpenGL mode) |