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/vpMeLine.h>
15 #if (defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_CMU1394) || defined(VISP_HAVE_V4L2))
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;
38 #if defined(VISP_HAVE_X11)
40 #elif defined(VISP_HAVE_GDI)
42 #elif defined(VISP_HAVE_OPENCV)
45 std::cout <<
"No image viewer is available..." << std::endl;
62 #if defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_CMU1394)
64 #elif defined(VISP_HAVE_OPENCV)
75 std::cout <<
"Catch an exception: " << e << std::endl;
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).
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.
void track(const vpImage< unsigned char > &Im)
static void flush(const vpImage< unsigned char > &I)
void display(const vpImage< unsigned char > &I, vpColor col)
Firewire cameras video capture based on CMU 1394 Digital Camera SDK.
void setDisplay(vpMeSite::vpMeSiteDisplayType select)
static void display(const vpImage< unsigned char > &I)
Class that tracks in an image a line moving edges.
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
void initTracking(const vpImage< unsigned char > &I)
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)