31 #include "drawingHelpers.h"
33 #include <visp3/core/vpImageConvert.h>
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #ifdef ENABLE_VISP_NAMESPACE
41 #if defined(VISP_HAVE_X11)
42 vpDisplayX drawingHelpers::d_Iinput;
43 vpDisplayX drawingHelpers::d_dIx;
44 vpDisplayX drawingHelpers::d_dIy;
45 vpDisplayX drawingHelpers::d_IcannyVisp;
46 vpDisplayX drawingHelpers::d_IcannyImgFilter;
47 #elif defined(HAVE_OPENCV_HIGHGUI)
53 #elif defined(VISP_HAVE_GTK)
59 #elif defined(VISP_HAVE_GDI)
65 #elif defined(VISP_HAVE_D3D9)
76 #if defined(VISP_HAVE_DISPLAY)
77 d_Iinput.
init(Iinput, 10, 10);
78 d_IcannyVisp.init(IcannyVisp, 10, Iinput.
getHeight() + 10 * 2);
79 if (p_dIx !=
nullptr) {
80 d_dIx.init(*p_dIx, Iinput.
getWidth() + 2 * 10, 10);
82 if (p_dIy !=
nullptr) {
83 d_dIy.init(*p_dIy, 2 * Iinput.
getWidth() + 3 * 10, 10);
85 if (p_IcannyimgFilter !=
nullptr) {
86 d_IcannyImgFilter.init(*p_IcannyimgFilter, Iinput.
getWidth() + 2 * 10, Iinput.
getHeight() + 10 * 2);
93 (void)p_IcannyimgFilter;
111 bool hasToContinue =
true;
114 hasToContinue =
false;
117 return hasToContinue;
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
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
static void setTitle(const vpImage< unsigned char > &I, const std::string &windowtitle)
static void flush(const vpImage< unsigned char > &I)
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
unsigned int getWidth() const
unsigned int getHeight() const