1 #include <visp3/core/vpConfig.h>
3 #include <visp3/gui/vpDisplayFactory.h>
4 #include <visp3/core/vpImageCircle.h>
5 #include <visp3/core/vpImageDraw.h>
9 #ifdef ENABLE_VISP_NAMESPACE
18 #if defined(VISP_HAVE_DISPLAY)
21 std::cout <<
"No gui available to display gray level image..." << std::endl;
34 std::cout <<
"Result of displaying a red circle on a gray level image overlay..." << std::endl;
35 std::cout <<
"A click to continue..." << std::endl;
46 std::cout <<
"Result of displaying a circle by modifying a gray level image..." << std::endl;
47 std::cout <<
"A click to continue..." << std::endl;
51 #if defined(VISP_HAVE_DISPLAY)
66 #if defined(VISP_HAVE_DISPLAY)
69 std::cout <<
"No gui available to display color image..." << std::endl;
75 std::cout <<
"Result of displaying a blue circle on a modified color image..." << std::endl;
76 std::cout <<
"A click to continue..." << std::endl;
78 #if defined(VISP_HAVE_DISPLAY)
86 std::cout <<
"Catch an exception: " << e.
getMessage() << std::endl;
88 std::cout << std::endl;
Class to define RGB colors available for display functionalities.
static const vpColor blue
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void displayCircle(const vpImage< unsigned char > &I, const vpImageCircle &circle, const vpColor &color, bool fill=false, unsigned int thickness=1)
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)
error that can be emitted by ViSP classes.
const char * getMessage() const
Class that defines a 2D circle in an image.
static void drawCircle(vpImage< unsigned char > &I, const vpImageCircle &circle, unsigned char color, unsigned int thickness=1)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
unsigned int getWidth() const
unsigned int getHeight() const
vpDisplay * allocateDisplay()
Return a newly allocated vpDisplay specialization if a GUI library is available or nullptr otherwise.