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
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 a 3D sphere in the object frame and allows forward projection of a 3D sphere in th...
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 a 3D point in the object frame and allows forward projection of a 3D point in the ...
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 3D line in the object frame and allows forward projection of the line in the cam...
void setWorldCoordinates(const double &oA1, const double &oB1, const double &oC1, const double &oD1, const double &oA2, const double &oB2, const double &oC2, const double &oD2)
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.
void init(vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_title="")
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)
Class that defines a 3D cylinder in the object frame and allows forward projection of a 3D cylinder i...
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 a 3D circle in the object frame and allows forward projection of a 3D circle in th...
Class that consider the case of a translation vector.
static const vpColor blue
void setWorldCoordinates(const vpColVector &oP)