Visual Servoing Platform  version 3.5.1 under development (2022-07-05)
#include <visp3/core/vpImage.h>
#include <visp3/gui/vpDisplayGDI.h>
#include <visp3/sensor/vp1394CMUGrabber.h>
int main()
#ifdef VISP_HAVE_CMU1394
try {
g.setVideoMode(0, 1); // 640x480 MONO8
g.setFramerate(4); // 30 fps;
std::cout << "Image size: " << I.getWidth() << " " << I.getHeight() << std::endl;
std::cout << "No image viewer is available..." << std::endl;
while (1) {
if (vpDisplay::getClick(I, false)) // A click to exit
} catch (const vpException &e) {
std::cout << "Catch an exception: " << e << std::endl;
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)
Display for windows using GDI (available on any windows 32 platform).
Definition: vpDisplayGDI.h:129
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 emited by ViSP classes.
Definition: vpException.h:72
unsigned int getWidth() const
Definition: vpImage.h:246
unsigned int getHeight() const
Definition: vpImage.h:188