2#include <visp3/core/vpConfig.h>
3#include <visp3/gui/vpDisplayFactory.h>
4#include <visp3/io/vpImageIo.h>
6#ifdef ENABLE_VISP_NAMESPACE
12#if defined(VISP_HAVE_DISPLAY)
17#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
31 std::string ofilename(
"overlay.png");
32 std::cout <<
"Save overlayed image in: " << ofilename << std::endl;
35 std::cout <<
"A click to quit..." << std::endl;
38#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
42 std::cout <<
"No gui available to display an image..." << std::endl;
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
static void flush(const vpImage< unsigned char > &I)
static void displayRectangle(const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1)
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)
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.