#include <visp3/core/vpConfig.h>
#include <visp3/gui/vpDisplayFactory.h>
#include <visp3/core/vpImageCircle.h>
#include <visp3/core/vpImageDraw.h>
#ifdef ENABLE_VISP_NAMESPACE
#endif
int main()
{
#if defined(VISP_HAVE_DISPLAY)
{
#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#else
#endif
std::cout << "Result of displaying a red circle on a gray level image overlay..." << std::endl;
std::cout << "A click to continue..." << std::endl;
std::cout << "Result of displaying a circle by modifying a gray level image..." << std::endl;
std::cout << "A click to continue..." << std::endl;
#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
delete d;
#endif
}
{
#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
#else
#endif
std::cout << "Result of displaying a blue circle on a modified color image..." << std::endl;
std::cout << "A click to continue..." << std::endl;
#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
delete d;
#endif
}
#else
std::cout << "No gui available to display an image..." << std::endl;
#endif
return EXIT_SUCCESS;
}
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)
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 ...
Definition of the vpImage class member functions.
std::shared_ptr< vpDisplay > createDisplay()
Return a smart pointer vpDisplay specialization if a GUI library is available or nullptr otherwise.
vpDisplay * allocateDisplay()
Return a newly allocated vpDisplay specialization if a GUI library is available or nullptr otherwise.