ViSP
2.8.0
Main Page
Related Pages
Modules
Classes
Examples
tutorial-grabber-opencv.cpp
#include <visp/vpDisplayOpenCV.h>
#include <visp/vpOpenCVGrabber.h>
int
main()
{
#ifdef VISP_HAVE_OPENCV
vpImage<unsigned char>
I;
vpOpenCVGrabber
g;
g.
open
(I);
std::cout <<
"Image size: "
<< I.
getWidth
() <<
" "
<< I.
getHeight
() << std::endl;
vpDisplayOpenCV
d(I);
while
(1) {
g.
acquire
(I);
vpDisplay::display
(I);
vpDisplay::flush
(I);
if
(
vpDisplay::getClick
(I,
false
))
break
;
}
#endif
}
Generated on Wed Sep 2 2015 14:12:28 for ViSP by
1.8.9.1