 |
Visual Servoing Platform
version 3.2.0
|
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;
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
void setInterpolationType(const vpInterpolationType interplt)
static void setTitle(const vpImage< unsigned char > &I, const std::string &windowtitle)
static double rad(double deg)
Generic class defining intrinsic camera parameters.
void setCameraPosition(const vpHomogeneousMatrix &cMt)
static void read(vpImage< unsigned char > &I, const std::string &filename)
Display for windows using GDI (available on any windows 32 platform).
void init(const vpImage< unsigned char > &I, vpColVector *X)
Class which enables to project an image in the 3D space and get the view of a virtual camera.
void setCleanPreviousImage(const bool &clean, const vpColor &color=vpColor::white)
Implementation of column vector and the associated operations.
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
static void write(const vpImage< unsigned char > &I, const std::string &filename)
static void display(const vpImage< unsigned char > &I)
unsigned int getHeight() const
void getImage(vpImage< unsigned char > &I, const vpCameraParameters &cam)
static void flush(const vpImage< unsigned char > &I)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
Implementation of an homogeneous matrix and operations on such kind of matrices.
error that can be emited by ViSP classes.
unsigned int getWidth() const