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)
47#elif defined(HAVE_OPENCV_HIGHGUI)
52VP_ATTRIBUTE_NO_DESTROY
vpDisplayOpenCV drawingHelpers::d_IcannyImgFilter;
53#elif defined(VISP_HAVE_GTK)
59#elif defined(VISP_HAVE_GDI)
60VP_ATTRIBUTE_NO_DESTROY
vpDisplayGDI drawingHelpers::d_Iinput;
61VP_ATTRIBUTE_NO_DESTROY
vpDisplayGDI drawingHelpers::d_dIx;
62VP_ATTRIBUTE_NO_DESTROY
vpDisplayGDI drawingHelpers::d_dIy;
63VP_ATTRIBUTE_NO_DESTROY
vpDisplayGDI drawingHelpers::d_IcannyVisp;
64VP_ATTRIBUTE_NO_DESTROY
vpDisplayGDI drawingHelpers::d_IcannyImgFilter;
65#elif defined(VISP_HAVE_D3D9)
66VP_ATTRIBUTE_NO_DESTROY
vpDisplayD3D drawingHelpers::d_Iinput;
67VP_ATTRIBUTE_NO_DESTROY
vpDisplayD3D drawingHelpers::d_dIx;
68VP_ATTRIBUTE_NO_DESTROY
vpDisplayD3D drawingHelpers::d_dIy;
69VP_ATTRIBUTE_NO_DESTROY
vpDisplayD3D drawingHelpers::d_IcannyVisp;
70VP_ATTRIBUTE_NO_DESTROY
vpDisplayD3D drawingHelpers::d_IcannyImgFilter;
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...
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
void init(vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_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)
Definition of the vpImage class member functions.
unsigned int getWidth() const
unsigned int getHeight() const