 |
Visual Servoing Platform
version 3.3.0
|
2 #include <visp3/io/vpImageIo.h>
3 #include <visp3/gui/vpDisplayGDI.h>
4 #include <visp3/gui/vpDisplayOpenCV.h>
5 #include <visp3/gui/vpDisplayX.h>
8 #include "pose_helper.h"
19 #if defined(VISP_HAVE_X11)
21 #elif defined(VISP_HAVE_GDI)
23 #elif defined(VISP_HAVE_OPENCV)
31 std::vector<vpDot2> dot(4);
32 std::vector<vpImagePoint> ip(4);
39 std::vector<vpPoint> point;
40 point.push_back(
vpPoint(-0.06, -0.06, 0));
41 point.push_back(
vpPoint( 0.06, -0.06, 0));
42 point.push_back(
vpPoint( 0.06, 0.06, 0));
43 point.push_back(
vpPoint(-0.06, 0.06, 0));
55 for (
unsigned int i = 0; i < dot.size(); i++) {
56 dot[i].setGraphics(
true);
58 ip[i] = dot[i].getCog();
62 computePose(point, ip, cam, init, cMo);
84 std::cout <<
"Catch an exception: " << e.
getMessage() << std::endl;
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
VISP_EXPORT int wait(double t0, double t)
Generic class defining intrinsic camera parameters.
static void read(vpImage< unsigned char > &I, const std::string &filename)
Display for windows using GDI (available on any windows 32 platform).
unsigned int getHeight() const
static const vpColor none
static void displayFrame(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, const vpImagePoint &offset=vpImagePoint(0, 0))
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
unsigned int getWidth() const
static void display(const vpImage< unsigned char > &I)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
const char * getMessage(void) const
static void flush(const vpImage< unsigned char > &I)
Class that defines what is a point.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
Implementation of an homogeneous matrix and operations on such kind of matrices.
error that can be emited by ViSP classes.