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) || \ 16 (VISP_HAVE_OPENCV_VERSION >= 0x020100)) 20 #if defined(VISP_HAVE_DC1394) 22 #elif defined(VISP_HAVE_CMU1394) 24 #elif defined(VISP_HAVE_V4L2) 26 #elif defined(VISP_HAVE_OPENCV) 27 cv::VideoCapture g(0);
29 std::cout <<
"Failed to open the camera" << std::endl;
35 #if defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_CMU1394) 37 #elif defined(VISP_HAVE_OPENCV) 42 #if defined(VISP_HAVE_X11) 44 #elif defined(VISP_HAVE_GDI) 46 #elif defined(VISP_HAVE_OPENCV) 49 std::cout <<
"No image viewer is available..." << std::endl;
66 #if defined(VISP_HAVE_DC1394) || defined(VISP_HAVE_V4L2) || defined(VISP_HAVE_CMU1394) 68 #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)