1 #include <visp/vp1394CMUGrabber.h>
3 #include <visp/vp1394TwoGrabber.h>
4 #include <visp/vpDisplayGDI.h>
5 #include <visp/vpDisplayOpenCV.h>
6 #include <visp/vpDisplayX.h>
7 #include <visp/vpDot2.h>
11 #if (defined(VISP_HAVE_DC1394_2) || defined(VISP_HAVE_CMU1394) || (VISP_HAVE_OPENCV_VERSION >= 0x020100)) && (defined(VISP_HAVE_X11) || defined(VISP_HAVE_GDI) || defined(VISP_HAVE_OPENCV))
14 #if defined(VISP_HAVE_DC1394_2)
17 #elif defined(VISP_HAVE_CMU1394)
20 #elif defined(VISP_HAVE_OPENCV)
21 cv::VideoCapture g(0);
23 std::cout <<
"Failed to open the camera" << std::endl;
31 #if defined(VISP_HAVE_X11)
33 #elif defined(VISP_HAVE_GDI)
35 #elif defined(VISP_HAVE_OPENCV)
48 bool init_done =
false;
52 #if defined(VISP_HAVE_DC1394_2) || defined(VISP_HAVE_CMU1394)
54 #elif defined(VISP_HAVE_OPENCV)
static void convert(const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest)
void open(vpImage< unsigned char > &I)
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)
Firewire cameras video capture based on CMU 1394 Digital Camera SDK.
void acquire(vpImage< unsigned char > &I)
static void display(const vpImage< unsigned char > &I)
The vpDisplayOpenCV allows to display image using the opencv library.
void initTracking(const vpImage< unsigned char > &I, unsigned int size=0)
Class for firewire ieee1394 video devices using libdc1394-2.x api.
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)