Mercurial > hg > nsaunier > traffic-intelligence
view include/cvutils.hpp @ 64:c75bcdaed00f
added functions for plotting points
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 05 Nov 2010 11:07:44 -0400 |
| parents | ff5403319cec |
| children | a52653dca25d |
line wrap: on
line source
#ifndef CVUTILS_HPP #define CVUTILS_HPP #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); /** 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
