Visual Servoing Platform  version 3.6.1 under development (2024-05-19)
drawingHelpers.h
1 #ifndef _drawingHelpers_h_
2 #define _drawingHelpers_h_
3 
4 #include <visp3/core/vpImage.h>
5 #include <visp3/gui/vpDisplayGDI.h>
6 #include <visp3/gui/vpDisplayOpenCV.h>
7 #include <visp3/gui/vpDisplayX.h>
8 
9 namespace drawingHelpers
10 {
11 #if defined(VISP_HAVE_X11)
12 extern vpDisplayX d;
13 #elif defined(VISP_HAVE_OPENCV)
14 extern vpDisplayOpenCV d;
15 #elif defined(VISP_HAVE_GTK)
16 extern vpDisplayGTK d;
17 #elif defined(VISP_HAVE_GDI)
18 extern vpDisplayGDI d;
19 #elif defined(VISP_HAVE_D3D9)
20 extern vpDisplayD3D d;
21 #endif
22 
23 extern vpImage<vpRGBa> I_disp;
24 
25 bool display(vpImage<vpRGBa> &I, const std::string &title, const bool &blockingMode);
26 bool display(vpImage<unsigned char> &I, const std::string &title, const bool &blockingMode);
27 bool display(vpImage<double> &D, const std::string &title, const bool &blockingMode);
28 }
29 
30 #endif
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed....
Definition: vpDisplayD3D.h:101
Display for windows using GDI (available on any windows 32 platform).
Definition: vpDisplayGDI.h:128
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
Definition: vpDisplayGTK.h:128
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
Definition: vpDisplayX.h:128
vpImage< vpRGBa > I_disp
void display(vpImage< unsigned char > &I, const std::string &title)
Display a gray-scale image.