2#include <visp3/core/vpConfig.h>
3#include <visp3/gui/vpDisplayFactory.h>
4#include <visp3/io/vpImageIo.h>
6#include <visp3/robot/vpImageSimulator.h>
11#ifdef ENABLE_VISP_NAMESPACE
14#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
15 std::shared_ptr<vpDisplay> display;
27 for (
int i = 0;
i < 4;
i++)
72 std::cout <<
"Unsupported image format" << std::endl;
76#if defined(VISP_HAVE_DISPLAY)
77#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
83 std::cout <<
"No image viewer is available..." << std::endl;
89 std::cout <<
"A click to quit..." << std::endl;
93 std::cout <<
"Catch an exception: " <<
e << std::endl;
96#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
97 if (display !=
nullptr) {
Generic class defining intrinsic camera parameters.
Implementation of column vector and the associated operations.
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 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.
Implementation of an homogeneous matrix and operations on such kind of matrices.
static void read(vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)
Class which enables to project an image in the 3D space and get the view of a virtual camera.
void getImage(vpImage< unsigned char > &I, const vpCameraParameters &cam)
void init(const vpImage< unsigned char > &I, vpColVector *X)
void setCleanPreviousImage(const bool &clean, const vpColor &color=vpColor::white)
void setInterpolationType(const vpInterpolationType interplt)
void setCameraPosition(const vpHomogeneousMatrix &cMt)
Definition of the vpImage class member functions.
static double rad(double deg)
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.