56 #include <visp/vpDebug.h>
57 #include <visp/vpImageIo.h>
59 #include <visp/vpImage.h>
61 #include <visp/vpDisplay.h>
62 #include <visp/vpDisplayGTK.h>
65 #include <visp/vpHomogeneousMatrix.h>
66 #include <visp/vpCameraParameters.h>
69 #include <visp/vpPoint.h>
70 #include <visp/vpLine.h>
71 #include <visp/vpCylinder.h>
72 #include <visp/vpCircle.h>
73 #include <visp/vpSphere.h>
81 std::cout <<
"ViSP geometric features display example" <<std::endl;
82 unsigned int height = 288;
83 unsigned int width = 384;
90 display.
init(I,100,100,
"ViSP geometric features display");
130 std::cout <<
"A click in the display to exit" << std::endl;
136 std::cout <<
"ViSP creates \"./geometricFeatures.ppm\" B&W image "<< std::endl;
141 std::cout <<
"Catch an exception: " << e << std::endl;
static void write(const vpImage< unsigned char > &I, const char *filename)
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
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
The vpRotationMatrix considers the particular case of a rotation matrix.
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 display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)
Class that consider the case of the Euler angle using the x-y-z convention, where are respectively ...
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)
void setWorldCoordinates(const double ox, const double oy, const double oz)
Set the point world coordinates. We mean here the coordinates of the point in the object frame...