comparison include/cvutils.hpp @ 481:b6ad86ee7033

implemented smoothing (requires latest trajectory management library version)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 02 Apr 2014 01:45:53 -0400
parents 5eeb3b9fb568
children 17e54690af8a 8ac7f61c6e4f
comparison
equal deleted inserted replaced
480:f43bc0b0ba74 481:b6ad86ee7033
15 cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography); 15 cv::Point2f project(const cv::Point2f& p, const cv::Mat& homography);
16 16
17 /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */ 17 /** Loads a cv mat from a text file where the numbers are saved line by line separated by separator */
18 cv::Mat loadMat(const std::string& filename, const std::string& separator); 18 cv::Mat loadMat(const std::string& filename, const std::string& separator);
19 19
20 template<typename T> 20 //template<typename T>
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);