Visual Servoing Platform  version 3.6.1 under development (2024-11-15)
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 DRAWING_HELPERS_H
31 #define DRAWING_HELPERS_H
32 
33 #include <visp3/core/vpConfig.h>
34 #include <visp3/core/vpImage.h>
35 #include <visp3/gui/vpDisplayGDI.h>
36 #include <visp3/gui/vpDisplayOpenCV.h>
37 #include <visp3/gui/vpDisplayX.h>
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 
41 namespace drawingHelpers
42 {
43 #if defined(VISP_HAVE_X11)
44 extern VISP_NAMESPACE_ADDRESSING vpDisplayX d_Iinput;
45 extern VISP_NAMESPACE_ADDRESSING vpDisplayX d_dIx;
46 extern VISP_NAMESPACE_ADDRESSING vpDisplayX d_dIy;
47 extern VISP_NAMESPACE_ADDRESSING vpDisplayX d_IcannyVisp;
48 extern VISP_NAMESPACE_ADDRESSING vpDisplayX d_IcannyImgFilter;
49 #elif defined(HAVE_OPENCV_HIGHGUI)
50 extern VISP_NAMESPACE_ADDRESSING vpDisplayOpenCV d_Iinput;
51 extern VISP_NAMESPACE_ADDRESSING vpDisplayOpenCV d_dIx;
52 extern VISP_NAMESPACE_ADDRESSING vpDisplayOpenCV d_dIy;
53 extern VISP_NAMESPACE_ADDRESSING vpDisplayOpenCV d_IcannyVisp;
54 extern VISP_NAMESPACE_ADDRESSING vpDisplayOpenCV d_IcannyImgFilter;
55 #elif defined(VISP_HAVE_GTK)
56 extern VISP_NAMESPACE_ADDRESSING vpDisplayGTK d_Iinput;
57 extern VISP_NAMESPACE_ADDRESSING vpDisplayGTK d_dIx;
58 extern VISP_NAMESPACE_ADDRESSING vpDisplayGTK d_dIy;
59 extern VISP_NAMESPACE_ADDRESSING vpDisplayGTK d_IcannyVisp;
60 extern VISP_NAMESPACE_ADDRESSING vpDisplayGTK d_IcannyImgFilter;
61 #elif defined(VISP_HAVE_GDI)
62 extern VISP_NAMESPACE_ADDRESSING vpDisplayGDI d_Iinput;
63 extern VISP_NAMESPACE_ADDRESSING vpDisplayGDI d_dIx;
64 extern VISP_NAMESPACE_ADDRESSING vpDisplayGDI d_dIy;
65 extern VISP_NAMESPACE_ADDRESSING vpDisplayGDI d_IcannyVisp;
66 extern VISP_NAMESPACE_ADDRESSING vpDisplayGDI d_IcannyImgFilter;
67 #elif defined(VISP_HAVE_D3D9)
68 extern VISP_NAMESPACE_ADDRESSING vpDisplayD3D d_Iinput;
69 extern VISP_NAMESPACE_ADDRESSING vpDisplayD3D d_dIx;
70 extern VISP_NAMESPACE_ADDRESSING vpDisplayD3D d_dIy;
71 extern VISP_NAMESPACE_ADDRESSING vpDisplayD3D d_IcannyVisp;
72 extern VISP_NAMESPACE_ADDRESSING vpDisplayD3D d_IcannyImgFilter;
73 #endif
74 
85 void init(VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> &Iinput, VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> &IcannyVisp, VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> *p_dIx,
86  VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> *p_dIy, VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> *p_IcannyimgFilter);
87 
94 void display(VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> &I, const std::string &title);
95 
104 bool waitForClick(const VISP_NAMESPACE_ADDRESSING vpImage<unsigned char> &I, const bool &blockingMode);
105 }
106 
107 #endif
108 #endif
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed....
Definition: vpDisplayD3D.h:106
Display for windows using GDI (available on any windows 32 platform).
Definition: vpDisplayGDI.h:130
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
Definition: vpDisplayGTK.h:133
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...