Functions | |
void | cv::imshow (const String &winname, const ogl::Texture2D &tex) |
Displays OpenGL 2D texture in 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::updateWindow (const String &winname) |
Force window to redraw its context and call draw callback ( See cv::setOpenGlDrawCallback ). More... | |
void cv::imshow | ( | const String & | winname, |
const ogl::Texture2D & | tex | ||
) |
#include <opencv2/highgui.hpp>
Displays OpenGL 2D texture in the specified window.
winname | Name of the window. |
tex | OpenGL 2D texture data. |
void cv::setOpenGlContext | ( | const String & | winname | ) |
#include <opencv2/highgui.hpp>
Sets the specified window as current OpenGL context.
winname | Name of the window. |
void cv::setOpenGlDrawCallback | ( | const String & | winname, |
OpenGlDrawCallback | onOpenGlDraw, | ||
void * | userdata = 0 |
||
) |
#include <opencv2/highgui.hpp>
Sets a callback function to be called to draw on top of displayed image.
The function setOpenGlDrawCallback can be used to draw 3D data on the window. See the example of callback function below:
winname | Name of the window. |
onOpenGlDraw | Pointer to the function to be called every frame. This function should be prototyped as void Foo(void*) . |
userdata | Pointer passed to the callback function.(Optional) |
void cv::updateWindow | ( | const String & | winname | ) |
#include <opencv2/highgui.hpp>
Force window to redraw its context and call draw callback ( See cv::setOpenGlDrawCallback ).
winname | Name of the window. |