46#include <visp3/core/vpConfig.h>
47#include <visp3/core/vpDebug.h>
52#if defined(VISP_HAVE_DC1394)
54#include <visp3/core/vpIoTools.h>
55#include <visp3/io/vpImageIo.h>
56#include <visp3/sensor/vp1394TwoGrabber.h>
66 std::cout <<
"IEEE1394 test in progress..." << std::endl;
71 std::string outputpath =
"/tmp/" + username;
82 unsigned int ncameras;
84 for (
unsigned int i = 0; i < ncameras; i++) {
87 std::cout <<
"Detected camera with GUID 0x" << std::hex << guid << std::endl;
93 std::cout <<
"Use camera with GUID 0x" << std::hex << guid << std::endl;
99 for (
int i = 0; i < 10; i++)
102 std::string filename = outputpath +
"/imagetest1.pgm";
103 std::cout <<
"Write image: " << filename << std::endl;
106 std::cout <<
"New connection..." << std::endl;
110 std::cout <<
"New connection..." << std::endl;
115 filename = outputpath +
"/imagetest2.pgm";
116 std::cout <<
"Write image: " << filename << std::endl;
119 vpCERROR <<
"Failure: exit" << std::endl;
125 vpTRACE(
"Ieee 1394 grabber capabilities are not available...\n"
126 "You should install libdc1394-2 to use this binary.");
Class for firewire ieee1394 video devices using libdc1394-2.x api.
void acquire(vpImage< unsigned char > &I)
void setCamera(uint64_t camera)
void getNumCameras(unsigned int &ncameras) const
void open(vpImage< unsigned char > &I)
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)