#include <visp3/gui/vpDisplayGDI.h>
#include <visp3/gui/vpDisplayX.h>
#include <visp3/core/vpImageCircle.h>
#include <visp3/core/vpImageDraw.h>
int main()
{
try {
{
#if defined(VISP_HAVE_X11)
#elif defined(VISP_HAVE_GDI)
#endif
std::cout << "Result of displaying a red circle on overlay on the display..." << std::endl;
std::cout << "A click to continue..." << std::endl;
std::cout << "Result of the modification of a uchar image..." << std::endl;
std::cout << "A click to continue..." << std::endl;
}
{
#if defined(VISP_HAVE_X11)
#elif defined(VISP_HAVE_GDI)
#endif
std::cout << "Result of the modification of a vpRGBa image..." << std::endl;
std::cout << "A click to continue..." << std::endl;
}
}
std::cout <<
"Catch an exception: " << e.
getMessage() << std::endl;
}
std::cout << std::endl;
}
Class to define RGB colors available for display functionalities.
static const vpColor blue
Display for windows using GDI (available on any windows 32 platform).
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
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