40 #include <visp3/core/vpConfig.h>
41 #include <visp3/core/vpDebug.h>
46 #ifdef ENABLE_VISP_NAMESPACE
50 #if defined(VISP_HAVE_DC1394)
52 #include <visp3/core/vpIoTools.h>
53 #include <visp3/io/vpImageIo.h>
54 #include <visp3/sensor/vp1394TwoGrabber.h>
59 std::cout <<
"IEEE1394 test in progress..." << std::endl;
64 std::string outputpath =
"/tmp/" + username;
75 unsigned int ncameras;
77 for (
unsigned int i = 0; i < ncameras; i++) {
80 std::cout <<
"Detected camera with GUID 0x" << std::hex << guid << std::endl;
86 std::cout <<
"Use camera with GUID 0x" << std::hex << guid << std::endl;
92 for (
int i = 0; i < 10; i++)
95 std::string filename = outputpath +
"/imagetest1.pgm";
96 std::cout <<
"Write image: " << filename << std::endl;
99 std::cout <<
"New connection..." << std::endl;
103 std::cout <<
"New connection..." << std::endl;
108 filename = outputpath +
"/imagetest2.pgm";
109 std::cout <<
"Write image: " << filename << std::endl;
113 vpCERROR <<
"Failure: exit" << std::endl;
119 vpTRACE(
"Ieee 1394 grabber capabilities are not available...");
120 vpTRACE(
"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)