1 #include <visp3/gui/vpDisplayGDI.h> 3 #include <visp3/gui/vpDisplayOpenCV.h> 4 #include <visp3/gui/vpDisplayX.h> 5 #include <visp3/io/vpImageIo.h> 7 #include <visp3/robot/vpImageSimulator.h> 20 for (
int i = 0; i < 4; i++)
64 std::cout <<
"Unsupported image format" << std::endl;
68 #if defined(VISP_HAVE_X11) 70 #elif defined(VISP_HAVE_GDI) 72 #elif defined(VISP_HAVE_OPENCV) 75 std::cout <<
"No image viewer is available..." << std::endl;
81 std::cout <<
"A click to quit..." << std::endl;
84 std::cout <<
"Catch an exception: " << e << std::endl;
void init(const vpImage< unsigned char > &I, vpColVector *X)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
unsigned int getWidth() const
Implementation of an homogeneous matrix and operations on such kind of matrices.
void getImage(vpImage< unsigned char > &I, const vpCameraParameters &cam)
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...
error that can be emited by ViSP classes.
static void flush(const vpImage< unsigned char > &I)
static void write(const vpImage< unsigned char > &I, const std::string &filename)
void setCameraPosition(const vpHomogeneousMatrix &cMt)
void setInterpolationType(const vpInterpolationType interplt)
static void display(const vpImage< unsigned char > &I)
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
Generic class defining intrinsic camera parameters.
Class which enables to project an image in the 3D space and get the view of a virtual camera...
static double rad(double deg)
static void read(vpImage< unsigned char > &I, const std::string &filename)
Implementation of column vector and the associated operations.
void setCleanPreviousImage(const bool &clean, const vpColor &color=vpColor::white)
unsigned int getHeight() const
static void setTitle(const vpImage< unsigned char > &I, const std::string &windowtitle)