comparison include/cvutils.hpp @ 126:336926453b28

added conversion function from keypoint vector to point vector and cleaned headers
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 17 Aug 2011 00:20:31 -0400
parents a52653dca25d
children d19d6e63dd77
comparison
equal deleted inserted replaced
125:28907fde9855 126:336926453b28
1 #ifndef CVUTILS_HPP 1 #ifndef CVUTILS_HPP
2 #define CVUTILS_HPP 2 #define CVUTILS_HPP
3 3
4 #include "opencv2/highgui/highgui.hpp" // types are in opencv2/core/types_c.h 4 #include "opencv2/core/core.hpp"
5 #include "opencv2/features2d/features2d.hpp"
5 6
6 class CvCapture; 7 class CvCapture;
7 8
8 /// constant that indicates if the image should be flipped 9 /// constant that indicates if the image should be flipped
9 10
10 //static const int flipImage = CV_CVTIMG_FLIP; 11 //static const int flipImage = CV_CVTIMG_FLIP;
12
13 void keypPoints2Points(const std::vector<cv::KeyPoint>& kpts, std::vector<cv::Point2f>& points);
11 14
12 /** Allocates a new IplImage. */ 15 /** Allocates a new IplImage. */
13 IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels); 16 IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels);
14 17
15 IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels); 18 IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels);