comparison include/cvutils.hpp @ 407:5eeb3b9fb568

commented problem code (opencv 2.4.6)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 12 Aug 2013 22:50:42 -0400
parents 0089fb29cd26
children b6ad86ee7033
comparison
equal deleted inserted replaced
406:37c7b46f6e21 407:5eeb3b9fb568
21 float scalarProduct(const cv::Point_<T>& v1, const cv::Point_<T>& v2) { return v1.x*v2.x+v1.y*v2.y;} 21 float scalarProduct(const cv::Point_<T>& v1, const cv::Point_<T>& v2) { return v1.x*v2.x+v1.y*v2.y;}
22 22
23 void keyPoints2Points(const std::vector<cv::KeyPoint>& kpts, std::vector<cv::Point2f>& pts, const bool& clearPts = true); 23 void keyPoints2Points(const std::vector<cv::KeyPoint>& kpts, std::vector<cv::Point2f>& pts, const bool& clearPts = true);
24 24
25 /** Allocates a new IplImage. */ 25 /** Allocates a new IplImage. */
26 IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels); 26 // IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels);
27 27
28 IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels); 28 // IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels);
29 29
30 /** Goes to the target frame number, by querying frame, 30 /** Goes to the target frame number, by querying frame,
31 supposing the video input is currently at current frame number. 31 supposing the video input is currently at current frame number.
32 Returns the frame number that was reached.*/ 32 Returns the frame number that was reached.*/
33 int goToFrameNum(CvCapture* inputVideo, const int& currentFrameNum, const int& targetFrameNum); 33 // int goToFrameNum(CvCapture* inputVideo, const int& currentFrameNum, const int& targetFrameNum);
34 34
35 /// Pre-defined colors 35 /// Pre-defined colors
36 class Colors { 36 class Colors {
37 public: 37 public:
38 static const int nColors = 8; 38 static const int nColors = 8;