Visual Servoing Platform  version 3.6.1 under development (2024-05-04)
drawingHelpers.h
1 /*
2  * ViSP, open source Visual Servoing Platform software.
3  * Copyright (C) 2005 - 2023 by Inria. All rights reserved.
4  *
5  * This software is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * See the file LICENSE.txt at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using ViSP with software that can not be combined with the GNU
13  * GPL, please contact Inria about acquiring a ViSP Professional
14  * Edition License.
15  *
16  * See https://visp.inria.fr for more information.
17  *
18  * This software was developed at:
19  * Inria Rennes - Bretagne Atlantique
20  * Campus Universitaire de Beaulieu
21  * 35042 Rennes Cedex
22  * France
23  *
24  * If you have questions regarding the use of this file, please contact
25  * Inria at visp@inria.fr
26  *
27  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29  */
30 #ifndef _drawingHelpers_h_
31 #define _drawingHelpers_h_
32 
33 #include <visp3/core/vpImage.h>
34 #include <visp3/gui/vpDisplayGDI.h>
35 #include <visp3/gui/vpDisplayOpenCV.h>
36 #include <visp3/gui/vpDisplayX.h>
37 
38 namespace drawingHelpers
39 {
40 #if defined(VISP_HAVE_X11)
41 extern vpDisplayX d_Iinput;
42 extern vpDisplayX d_dIx;
43 extern vpDisplayX d_dIy;
46 #elif defined(HAVE_OPENCV_HIGHGUI)
48 extern vpDisplayOpenCV d_dIx;
49 extern vpDisplayOpenCV d_dIy;
52 #elif defined(VISP_HAVE_GTK)
53 extern vpDisplayGTK d_Iinput;
54 extern vpDisplayGTK d_dIx;
55 extern vpDisplayGTK d_dIy;
58 #elif defined(VISP_HAVE_GDI)
59 extern vpDisplayGDI d_Iinput;
60 extern vpDisplayGDI d_dIx;
61 extern vpDisplayGDI d_dIy;
64 #elif defined(VISP_HAVE_D3D9)
65 extern vpDisplayD3D d_Iinput;
66 extern vpDisplayD3D d_dIx;
67 extern vpDisplayD3D d_dIy;
70 #endif
71 
83  vpImage<unsigned char> *p_dIy, vpImage<unsigned char> *p_IcannyimgFilter);
84 
91 void display(vpImage<unsigned char> &I, const std::string &title);
92 
101 bool waitForClick(const vpImage<unsigned char> &I, const bool &blockingMode);
102 }
103 
104 #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
vpDisplayX d_IcannyVisp
vpDisplayX d_IcannyImgFilter
bool waitForClick(const vpImage< unsigned char > &I, const bool &blockingMode)
Catch the user clicks to know if the user wants to stop the program.
vpDisplayX d_dIx
vpDisplayX d_dIy
void display(vpImage< unsigned char > &I, const std::string &title)
Display a gray-scale image.
void init(vpImage< unsigned char > &Iinput, vpImage< unsigned char > &IcannyVisp, vpImage< unsigned char > *p_dIx, vpImage< unsigned char > *p_dIy, vpImage< unsigned char > *p_IcannyimgFilter)
Initialize the different displays.
vpDisplayX d_Iinput