diff 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
line wrap: on
line diff
--- a/include/cvutils.hpp	Wed Nov 11 12:01:43 2009 -0500
+++ b/include/cvutils.hpp	Wed Nov 11 23:25:23 2009 -0500
@@ -3,10 +3,20 @@
 
 #include "opencv/cxtypes.h"
 
+class CvCapture;
+
+/// constant that indicates if the image should be flipped
+
+//static const int flipImage = CV_CVTIMG_FLIP;
+
+/** Allocates a new IplImage. */
 IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels);
 
 IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels);
 
-void goToFrameNum(CvCapture* capture, const int& currentFrameNum, const int& targetFrameNum);
+/** Goes to the target frame number, by querying frame, 
+    supposing the video input is currently at current frame number.
+    Returns the frame number that was reached.*/
+int goToFrameNum(CvCapture* inputVideo, const int& currentFrameNum, const int& targetFrameNum);
 
 #endif