1 #include <visp/vp1394TwoGrabber.h> 3 #include <visp/vpDisplayX.h> 4 #include <visp/vpImage.h> 9 #ifdef VISP_HAVE_DC1394_2 12 vpImage< unsigned char > I;
14 vp1394TwoGrabber g( reset );
16 g.setVideoMode( vp1394TwoGrabber::vpVIDEO_MODE_640x480_MONO8 );
17 g.setFramerate( vp1394TwoGrabber::vpFRAMERATE_60 );
20 std::cout <<
"Image size: " << I.getWidth() <<
" " << I.getHeight() << std::endl;
25 std::cout <<
"No image viewer is available..." << std::endl;
31 vpDisplay::display( I );
32 vpDisplay::flush( I );
33 if ( vpDisplay::getClick( I,
false ) )
37 catch ( vpException e )
39 std::cout <<
"Catch an exception: " << e << std::endl;