2 #include <visp3/core/vpConfig.h>
3 #include <visp3/core/vpImage.h>
4 #include <visp3/gui/vpDisplayFactory.h>
5 #include <visp3/io/vpVideoWriter.h>
6 #include <visp3/sensor/vp1394TwoGrabber.h>
8 int main(
int argc,
char **)
10 #ifdef VISP_HAVE_DC1394
11 #ifdef ENABLE_VISP_NAMESPACE
14 #ifdef VISP_HAVE_DISPLAY
17 std::cout <<
"No image viewer is available..." << std::endl;
40 #ifdef VISP_HAVE_DISPLAY
45 for (
unsigned int i = 0; i < 1000; ++i)
53 #ifdef VISP_HAVE_DISPLAY
68 std::cout <<
"Catch an exception: " << e << std::endl;
70 #ifdef VISP_HAVE_DISPLAY
Class for firewire ieee1394 video devices using libdc1394-2.x api.
@ vpVIDEO_MODE_640x480_MONO8
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="") VP_OVERRIDE
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.
unsigned int getWidth() const
unsigned int getHeight() const
Class that enables to write easily a video file or a sequence of images.
void saveFrame(vpImage< vpRGBa > &I)
void setFileName(const std::string &filename)
void open(vpImage< vpRGBa > &I)
vpDisplay * allocateDisplay()
Return a newly allocated vpDisplay specialization if a GUI library is available or nullptr otherwise.