1 #include <visp/vpV4l2Grabber.h>
3 #include <visp/vpDisplayGDI.h>
4 #include <visp/vpDisplayGTK.h>
5 #include <visp/vpDisplayOpenCV.h>
6 #include <visp/vpDisplayX.h>
7 #include <visp/vpDot2.h>
11 #if ((defined(VISP_HAVE_V4L2) || (VISP_HAVE_OPENCV_VERSION >= 0x020100)) && (defined(VISP_HAVE_X11) || defined(VISP_HAVE_GDI) || defined(VISP_HAVE_OPENCV) || defined(VISP_HAVE_GTK)))
14 #if defined(VISP_HAVE_V4L2)
17 #elif defined(VISP_HAVE_OPENCV)
18 cv::VideoCapture g(0);
20 std::cout <<
"Failed to open the camera" << std::endl;
28 #if defined(VISP_HAVE_X11)
30 #elif defined(VISP_HAVE_GDI)
32 #elif defined(VISP_HAVE_OPENCV)
34 #elif defined(VISP_HAVE_GTK)
43 bool init_done =
false;
44 std::cout <<
"Click!!!" << std::endl;
47 #if defined(VISP_HAVE_V4L2)
49 #elif defined(VISP_HAVE_OPENCV)
void acquire(vpImage< unsigned char > &I)
void open(vpImage< unsigned char > &I)
static void convert(const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest)
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)
Define the X11 console to display images.
This tracker is meant to track a blob (connex pixels with same gray level) on a vpImage.
void track(const vpImage< unsigned char > &I)
static void flush(const vpImage< unsigned char > &I)
void setGraphicsThickness(unsigned int t)
static void display(const vpImage< unsigned char > &I)
The vpDisplayOpenCV allows to display image using the opencv library.
The vpDisplayGTK allows to display image using the GTK+ library version 1.2.
Class for the Video4Linux2 video device.
void initTracking(const vpImage< unsigned char > &I, unsigned int size=0)
virtual bool getClick(bool blocking=true)=0
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void setGraphics(const bool activate)