1 #include <visp3/io/vpImageIo.h> 3 #include <visp3/gui/vpDisplayX.h> 4 #include <visp3/gui/vpDisplayGTK.h> 5 #include <visp3/gui/vpDisplayGDI.h> 6 #include <visp3/gui/vpDisplayD3D.h> 7 #include <visp3/gui/vpDisplayOpenCV.h> 16 #if defined(VISP_HAVE_X11) 18 #elif defined(VISP_HAVE_GTK) 20 #elif defined(VISP_HAVE_GDI) 22 #elif defined(VISP_HAVE_D3D9) 24 #elif defined(VISP_HAVE_OPENCV) 29 #ifdef VISP_HAVE_DISPLAY 41 std::cout <<
"Save image in overlay.ppm" << std::endl;
42 std::string ofilename(
"overlay.png");
45 std::cout <<
"A click to quit..." << std::endl;
47 #ifdef VISP_HAVE_DISPLAY Class that defines generic functionnalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
Display for windows using GDI (available on any windows 32 platform).
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
static void flush(const vpImage< unsigned char > &I)
static void write(const vpImage< unsigned char > &I, const std::string &filename)
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed...
static void display(const vpImage< unsigned char > &I)
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
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 getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)