2 #include <visp3/core/vpConfig.h>
3 #ifdef VISP_HAVE_MODULE_SENSOR
4 #include <visp3/sensor/vp1394CMUGrabber.h>
5 #include <visp3/sensor/vp1394TwoGrabber.h>
6 #include <visp3/sensor/vpV4l2Grabber.h>
8 #include <visp3/gui/vpDisplayGDI.h>
9 #include <visp3/gui/vpDisplayOpenCV.h>
10 #include <visp3/gui/vpDisplayX.h>
11 #include <visp3/me/vpMeEllipse.h>
15 #if (defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_CMU1394) || defined(VISP_HAVE_V4L2) || (VISP_HAVE_OPENCV_VERSION >= 0x020100))
19 #if defined(VISP_HAVE_DC1394)
21 #elif defined(VISP_HAVE_CMU1394)
23 #elif defined(VISP_HAVE_V4L2)
25 #elif defined(VISP_HAVE_OPENCV)
26 cv::VideoCapture g(0);
28 std::cout <<
"Failed to open the camera" << std::endl;
34 #if defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_CMU1394)
36 #elif defined(VISP_HAVE_OPENCV)
41 #if defined(VISP_HAVE_X11)
43 #elif defined(VISP_HAVE_GDI)
45 #elif defined(VISP_HAVE_OPENCV)
48 std::cout <<
"No image viewer is available..." << std::endl;
65 #if defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_CMU1394)
67 #elif defined(VISP_HAVE_OPENCV)
78 std::cout <<
"Catch an exception: " << e << std::endl;
void acquire(vpImage< unsigned char > &I)
void initTracking(const 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).
void setSampleStep(const double &s)
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 tracks an ellipse moving edges.
static void flush(const vpImage< unsigned char > &I)
void track(const vpImage< unsigned char > &Im)
Firewire cameras video capture based on CMU 1394 Digital Camera SDK.
void setDisplay(vpMeSite::vpMeSiteDisplayType select)
static void display(const vpImage< unsigned char > &I)
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
void display(const vpImage< unsigned char > &I, vpColor col)
Class that is a wrapper over the Video4Linux2 (V4L2) driver.
void setThreshold(const double &t)
Class for firewire ieee1394 video devices using libdc1394-2.x api.
void setRange(const unsigned int &r)