OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Enumerations | Functions
highgui.hpp File Reference
#include "opencv2/core.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/highgui/highgui_c.h"

Classes

struct  cv::QtFont
 

Namespaces

 cv
 

Typedefs

typedef void(* cv::ButtonCallback )(int state, void *userdata)
 
typedef void(* cv::MouseCallback )(int event, int x, int y, int flags, void *userdata)
 
typedef void(* cv::OpenGlDrawCallback )(void *userdata)
 
typedef void(* cv::TrackbarCallback )(int pos, void *userdata)
 

Enumerations

enum  {
  cv::WINDOW_NORMAL = 0x00000000,
  cv::WINDOW_AUTOSIZE = 0x00000001,
  cv::WINDOW_OPENGL = 0x00001000,
  cv::WINDOW_FULLSCREEN = 1,
  cv::WINDOW_FREERATIO = 0x00000100,
  cv::WINDOW_KEEPRATIO = 0x00000000
}
 
enum  {
  cv::WND_PROP_FULLSCREEN = 0,
  cv::WND_PROP_AUTOSIZE = 1,
  cv::WND_PROP_ASPECT_RATIO = 2,
  cv::WND_PROP_OPENGL = 3
}
 
enum  {
  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
}
 
enum  {
  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
}
 
enum  {
  cv::QT_FONT_LIGHT = 25,
  cv::QT_FONT_NORMAL = 50,
  cv::QT_FONT_DEMIBOLD = 63,
  cv::QT_FONT_BOLD = 75,
  cv::QT_FONT_BLACK = 87
}
 
enum  {
  cv::QT_STYLE_NORMAL = 0,
  cv::QT_STYLE_ITALIC = 1,
  cv::QT_STYLE_OBLIQUE = 2
}
 
enum  {
  cv::QT_PUSH_BUTTON = 0,
  cv::QT_CHECKBOX = 1,
  cv::QT_RADIOBOX = 2
}
 

Functions

void cv::addText (const Mat &img, const String &text, Point org, const QtFont &font)
 Creates the font to draw a text on an image. More...
 
int cv::createButton (const String &bar_name, ButtonCallback on_change, void *userdata=0, int type=QT_PUSH_BUTTON, bool initial_button_state=false)
 Attaches a button to the control panel. More...
 
int cv::createTrackbar (const String &trackbarname, const String &winname, int *value, int count, TrackbarCallback onChange=0, void *userdata=0)
 Creates a trackbar and attaches it to the specified window. More...
 
void cv::destroyAllWindows ()
 Destroys all of the HighGUI windows. More...
 
void cv::destroyWindow (const String &winname)
 Destroys a window. More...
 
void cv::displayOverlay (const String &winname, const String &text, int delayms=0)
 Displays a text on a window image as an overlay for a specified duration. More...
 
void cv::displayStatusBar (const String &winname, const String &text, int delayms=0)
 Displays a text on the window statusbar during the specified period of time. More...
 
QtFont cv::fontQt (const String &nameFont, int pointSize=-1, Scalar color=Scalar::all(0), int weight=QT_FONT_NORMAL, int style=QT_STYLE_NORMAL, int spacing=0)
 Creates the font to draw a text on an image. More...
 
int cv::getMouseWheelDelta (int flags)
 Gets the mouse-wheel motion delta, when handling mouse-wheel events EVENT_MOUSEWHEEL and EVENT_MOUSEHWHEEL. More...
 
int cv::getTrackbarPos (const String &trackbarname, const String &winname)
 Returns the trackbar position. More...
 
double cv::getWindowProperty (const String &winname, int prop_id)
 Provides parameters of a window. More...
 
void cv::imshow (const String &winname, InputArray mat)
 Displays an image in the specified window. More...
 
void cv::imshow (const String &winname, const ogl::Texture2D &tex)
 
void cv::loadWindowParameters (const String &windowName)
 Loads parameters of the specified window. More...
 
void cv::moveWindow (const String &winname, int x, int y)
 Moves window to the specified position. More...
 
void cv::namedWindow (const String &winname, int flags=WINDOW_AUTOSIZE)
 Creates a window. More...
 
void cv::resizeWindow (const String &winname, int width, int height)
 Resizes window to the specified size. More...
 
void cv::saveWindowParameters (const String &windowName)
 Saves parameters of the specified window. More...
 
void cv::setMouseCallback (const String &winname, MouseCallback onMouse, void *userdata=0)
 Sets mouse handler for the specified window. More...
 
void cv::setOpenGlContext (const String &winname)
 Sets the specified window as current OpenGL context. More...
 
void cv::setOpenGlDrawCallback (const String &winname, OpenGlDrawCallback onOpenGlDraw, void *userdata=0)
 Sets a callback function to be called to draw on top of displayed image. More...
 
void cv::setTrackbarMax (const String &trackbarname, const String &winname, int maxval)
 Sets the trackbar maximum position. More...
 
void cv::setTrackbarPos (const String &trackbarname, const String &winname, int pos)
 Sets the trackbar position. More...
 
void cv::setWindowProperty (const String &winname, int prop_id, double prop_value)
 Changes parameters of a window dynamically. More...
 
void cv::setWindowTitle (const String &winname, const String &title)
 Updates window title. More...
 
int cv::startLoop (int(*pt2Func)(int argc, char *argv[]), int argc, char *argv[])
 
int cv::startWindowThread ()
 
void cv::stopLoop ()
 
void cv::updateWindow (const String &winname)
 Force window to redraw its context and call draw callback ( setOpenGlDrawCallback ). More...
 
int cv::waitKey (int delay=0)
 Waits for a pressed key. More...