2#include <visp3/core/vpConfig.h>
3#include <visp3/core/vpImage.h>
4#include <visp3/gui/vpDisplayFactory.h>
5#include <visp3/sensor/vp1394CMUGrabber.h>
9#ifdef VISP_HAVE_CMU1394
10#ifdef ENABLE_VISP_NAMESPACE
13#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
14 std::shared_ptr<vpDisplay> display;
28 std::cout <<
"Image size: " << I.getWidth() <<
" " << I.getHeight() << std::endl;
30#ifdef VISP_HAVE_DISPLAY
31#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
37 std::cout <<
"No image viewer is available..." << std::endl;
49 std::cout <<
"Catch an exception: " <<
e << std::endl;
52#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
53 if (display !=
nullptr) {
58 std::cout <<
"Install CMU1394 SDK, configure and build ViSP again to use this example" << std::endl;
Firewire cameras video capture based on CMU 1394 Digital Camera SDK.
void setVideoMode(unsigned long format, unsigned long mode)
void acquire(vpImage< unsigned char > &I)
void setFramerate(unsigned long fps)
void open(vpImage< unsigned char > &I)
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
static void flush(const vpImage< unsigned char > &I)
error that can be emitted by ViSP classes.
Definition of the vpImage class member functions.
std::shared_ptr< vpDisplay > createDisplay()
Return a smart pointer vpDisplay specialization if a GUI library is available or nullptr otherwise.
vpDisplay * allocateDisplay()
Return a newly allocated vpDisplay specialization if a GUI library is available or nullptr otherwise.