Images grabbing example with the vp1394TwoGrabber class.
#include <stdio.h>
#include <stdlib.h>
#include <visp3/core/vpImage.h>
#include <visp3/sensor/vp1394TwoGrabber.h>
int main()
{
#ifdef VISP_HAVE_DC1394
try {
unsigned int ncameras;
for (unsigned int camera = 0; camera < ncameras; camera++) {
}
for (;;) {
for (unsigned int camera = 0; camera < ncameras; camera++) {
}
}
delete [] I;
return EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
#endif
}
Class for firewire ieee1394 video devices using libdc1394-2.x api.
void acquire(vpImage< unsigned char > &I)
void setVideoMode(vp1394TwoVideoModeType videomode)
void setCamera(uint64_t camera)
@ vpVIDEO_MODE_640x480_YUV422
void setFramerate(vp1394TwoFramerateType fps)
void getNumCameras(unsigned int &ncameras) const
error that can be emitted by ViSP classes.