Mercurial Hosting > traffic-intelligence
comparison include/cvutils.hpp @ 12:ff5403319cec
optical flow demo working
author | Nicolas Saunier <nico@confins.net> |
---|---|
date | Wed, 11 Nov 2009 23:25:23 -0500 |
parents | e77e2fd69b02 |
children | a52653dca25d |
comparison
equal
deleted
inserted
replaced
11:e77e2fd69b02 | 12:ff5403319cec |
---|---|
1 #ifndef CVUTILS_HPP | 1 #ifndef CVUTILS_HPP |
2 #define CVUTILS_HPP | 2 #define CVUTILS_HPP |
3 | 3 |
4 #include "opencv/cxtypes.h" | 4 #include "opencv/cxtypes.h" |
5 | 5 |
6 class CvCapture; | |
7 | |
8 /// constant that indicates if the image should be flipped | |
9 | |
10 //static const int flipImage = CV_CVTIMG_FLIP; | |
11 | |
12 /** Allocates a new IplImage. */ | |
6 IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels); | 13 IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels); |
7 | 14 |
8 IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels); | 15 IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels); |
9 | 16 |
10 void goToFrameNum(CvCapture* capture, const int& currentFrameNum, const int& targetFrameNum); | 17 /** Goes to the target frame number, by querying frame, |
18 supposing the video input is currently at current frame number. | |
19 Returns the frame number that was reached.*/ | |
20 int goToFrameNum(CvCapture* inputVideo, const int& currentFrameNum, const int& targetFrameNum); | |
11 | 21 |
12 #endif | 22 #endif |