1 #include <visp/vp1394TwoGrabber.h> 3 #include <visp/vpDisplayX.h> 4 #include <visp/vpImage.h> 8 #ifdef VISP_HAVE_DC1394_2 10 vpImage<unsigned char> I;
12 vp1394TwoGrabber g(reset);
14 g.setVideoMode(vp1394TwoGrabber::vpVIDEO_MODE_640x480_MONO8);
15 g.setFramerate(vp1394TwoGrabber::vpFRAMERATE_60);
18 std::cout <<
"Image size: " << I.getWidth() <<
" " << I.getHeight() << std::endl;
23 std::cout <<
"No image viewer is available..." << std::endl;
28 vpDisplay::display(I);
30 if (vpDisplay::getClick(I,
false))
34 catch(vpException e) {
35 std::cout <<
"Catch an exception: " << e << std::endl;