2 #include <visp/vpImageConvert.h>
3 #include <visp/vpKltOpencv.h>
4 #include <visp/vpDisplayOpenCV.h>
5 #include <visp/vpVideoReader.h>
9 #if (VISP_HAVE_OPENCV_VERSION >= 0x010100) && defined(VISP_HAVE_FFMPEG)
17 IplImage * cvI = NULL;
39 while ( ! reader.
end() )
58 std::cout <<
"Catch an exception: " << e << std::endl;
void setQuality(double input)
void track(const IplImage *I)
static void convert(const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest)
void setUseHarris(const int input)
Class that enables to manipulate easily a video file or a sequence of images. As it inherits from the...
void display(const vpImage< unsigned char > &I, vpColor color=vpColor::red, unsigned int thickness=1)
error that can be emited by ViSP classes.
void setPyramidLevels(const int input)
void setBlockSize(const int input)
static void flush(const vpImage< unsigned char > &I)
void setWindowSize(const int input)
static void display(const vpImage< unsigned char > &I)
The vpDisplayOpenCV allows to display image using the opencv library.
void acquire(vpImage< vpRGBa > &I)
void setFileName(const char *filename)
void initTracking(const IplImage *I, const IplImage *mask=NULL)
Wrapper for the KLT (Kanade-Lucas-Tomasi) feature tracker implemented in OpenCV.
virtual bool getClick(bool blocking=true)=0
void setMaxFeatures(const int input)
void setMinDistance(double input)
void setHarrisFreeParameter(double input)