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/vpCameraParameters.h> 62 #include <visp3/core/vpHomogeneousMatrix.h> 65 #include <visp3/core/vpCircle.h> 66 #include <visp3/core/vpCylinder.h> 67 #include <visp3/core/vpLine.h> 68 #include <visp3/core/vpPoint.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");
129 std::cout <<
"A click in the display to exit" << std::endl;
135 std::cout <<
"ViSP creates \"./geometricFeatures.ppm\" B&W image " << std::endl;
139 std::cout <<
"Catch an exception: " << e << std::endl;
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)
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.
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.
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.
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 3rd party library. Thus to enable this class G...
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)
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="")
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.
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)