 |
Visual Servoing Platform
version 3.3.0
|
52 #include <visp3/core/vpDebug.h>
53 #include <visp3/io/vpImageIo.h>
55 #include <visp3/core/vpImage.h>
57 #include <visp3/core/vpDisplay.h>
58 #include <visp3/gui/vpDisplayGDI.h>
59 #include <visp3/gui/vpDisplayGTK.h>
60 #include <visp3/gui/vpDisplayOpenCV.h>
61 #include <visp3/gui/vpDisplayX.h>
64 #include <visp3/core/vpCameraParameters.h>
65 #include <visp3/core/vpHomogeneousMatrix.h>
68 #include <visp3/core/vpCircle.h>
69 #include <visp3/core/vpCylinder.h>
70 #include <visp3/core/vpLine.h>
71 #include <visp3/core/vpPoint.h>
72 #include <visp3/core/vpSphere.h>
79 std::cout <<
"ViSP geometric features display example" << std::endl;
80 unsigned int height = 288;
81 unsigned int width = 384;
86 #if defined(VISP_HAVE_X11)
88 #elif defined(VISP_HAVE_GDI)
90 #elif defined(VISP_HAVE_OPENCV)
92 #elif defined(VISP_HAVE_GTK)
95 std::cout <<
"Please install X11, GDI, OpenCV or GTK to see the result of this example" << std::endl;
99 #if defined(VISP_HAVE_X11) || defined(VISP_HAVE_GDI) || defined(VISP_HAVE_OPENCV) || defined(VISP_HAVE_GTK)
101 display.init(I, 100, 100,
"ViSP geometric features display");
149 #if defined(VISP_HAVE_X11) || defined(VISP_HAVE_GDI) || defined(VISP_HAVE_OPENCV) || defined(VISP_HAVE_GTK)
153 std::cout <<
"ViSP creates \"./geometricFeatures.ppm\" image" << std::endl;
157 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...
static const vpColor orange
Generic class defining intrinsic camera parameters.
static const vpColor black
Display for windows using GDI (available on any windows 32 platform).
static const vpColor blue
void setWorldCoordinates(const double &A1, const double &B1, const double &C1, const double &D1, const double &A2, const double &B2, const double &C2, const double &D2)
void setWorldCoordinates(const vpColVector &oP)
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1)
Class that defines what is a circle.
Class that consider the case of a translation vector.
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
Class that defines what is a cylinder.
static void write(const vpImage< unsigned char > &I, const std::string &filename)
static void display(const vpImage< unsigned char > &I)
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
void setWorldCoordinates(const vpColVector &oP)
void setWorldCoordinates(double oX, double oY, double oZ)
Implementation of a rotation matrix and operations on such kind of matrices.
void setWorldCoordinates(const vpColVector &oP)
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1)
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1)
Class that defines a line in the object frame, the camera frame and the image plane....
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1)
Class that defines what is a sphere.
static void flush(const vpImage< unsigned char > &I)
Class that defines what is a point.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
Implementation of an homogeneous matrix and operations on such kind of matrices.
error that can be emited by ViSP classes.
Implementation of a rotation vector as Euler angle minimal representation.
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1)