1 #include <visp3/core/vpConfig.h>
3 #include <visp3/gui/vpDisplayD3D.h>
4 #include <visp3/gui/vpDisplayGDI.h>
5 #include <visp3/gui/vpDisplayGTK.h>
6 #include <visp3/gui/vpDisplayOpenCV.h>
7 #include <visp3/gui/vpDisplayX.h>
8 #include <visp3/io/vpImageIo.h>
12 #ifdef ENABLE_VISP_NAMESPACE
21 #if defined(VISP_HAVE_X11)
23 #elif defined(VISP_HAVE_GTK)
25 #elif defined(VISP_HAVE_GDI)
27 #elif defined(VISP_HAVE_D3D9)
29 #elif defined(HAVE_OPENCV_HIGHGUI)
34 #ifdef VISP_HAVE_DISPLAY
46 std::cout <<
"Save image in overlay.ppm" << std::endl;
47 std::string ofilename(
"overlay.png");
50 std::cout <<
"A click to quit..." << std::endl;
52 #ifdef VISP_HAVE_DISPLAY
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed....
Display for windows using GDI (available on any windows 32 platform).
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="") VP_OVERRIDE
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
static void flush(const vpImage< unsigned char > &I)
static void displayRectangle(const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1)
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)