Mercurial Hosting > traffic-intelligence
view include/cvutils.hpp @ 96:9928c2fa72cc
added equal method to intervals
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 13 Jun 2011 16:50:40 -0400 |
parents | a52653dca25d |
children | 336926453b28 |
line wrap: on
line source
#ifndef CVUTILS_HPP #define CVUTILS_HPP #include "opencv2/highgui/highgui.hpp" // types are in opencv2/core/types_c.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