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;
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)
void setWorldCoordinates(double oX, double oY, double oZ)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
Implementation of an homogeneous matrix and operations on such kind of matrices.
static const vpColor black
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)
Display for windows using GDI (available on any windows 32 platform).
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
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.
Class that defines what is a sphere.
void setWorldCoordinates(const vpColVector &oP)
static void flush(const vpImage< unsigned char > &I)
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 point.
static const vpColor orange
Implementation of a rotation matrix and operations on such kind of matrices.
static void write(const vpImage< unsigned char > &I, const std::string &filename)
Class that defines a line in the object frame, the camera frame and the image plane. All the parameters must be set in meter.
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.
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="")
Class that defines what is a cylinder.
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)
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.
static const vpColor blue
void setWorldCoordinates(const vpColVector &oP)