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/vpDisplayGTK.h>
61 #include <visp3/core/vpHomogeneousMatrix.h>
62 #include <visp3/core/vpCameraParameters.h>
65 #include <visp3/core/vpPoint.h>
66 #include <visp3/core/vpLine.h>
67 #include <visp3/core/vpCylinder.h>
68 #include <visp3/core/vpCircle.h>
69 #include <visp3/core/vpSphere.h>
77 std::cout <<
"ViSP geometric features display example" <<std::endl;
78 unsigned int height = 288;
79 unsigned int width = 384;
86 display.
init(I,100,100,
"ViSP geometric features display");
126 std::cout <<
"A click in the display to exit" << std::endl;
132 std::cout <<
"ViSP creates \"./geometricFeatures.ppm\" B&W image "<< std::endl;
137 std::cout <<
"Catch an exception: " << e << std::endl;
static void write(const vpImage< unsigned char > &I, const char *filename)
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)
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)
error that can be emited by ViSP classes.
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const char *title=NULL)
Class that defines what is a sphere.
void setWorldCoordinates(const vpColVector &oP)
static void flush(const vpImage< unsigned char > &I)
Class that defines what is a point.
static const vpColor orange
Implementation of a rotation matrix and operations on such kind of matrices.
Class that defines a line in the object frame, the camera frame and the image plane. All the parameters must be set in meter.
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)
static void display(const vpImage< unsigned char > &I)
Generic class defining intrinsic camera parameters.
The vpDisplayGTK allows to display image using the GTK+ library version 1.2.
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)
Class that defines what is a cylinder.
void setWorldCoordinates(const double oX, const double oY, const double oZ)
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)
Implementation of a rotation vector as Euler angle minimal representation.
virtual bool getClick(bool blocking=true)=0
void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)
void setWorldCoordinates(const vpColVector &oP)
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)