diff c/cvutils.cpp @ 802:d3e8dd9f3ca4 dev

current dev for drone stabilization
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 31 May 2016 17:59:35 -0400
parents 1e3c7fe21a38
children f7cf43b5ad3b
line wrap: on
line diff
--- a/c/cvutils.cpp	Tue May 31 17:06:41 2016 -0400
+++ b/c/cvutils.cpp	Tue May 31 17:59:35 2016 -0400
@@ -49,35 +49,6 @@
     pts.push_back(kpts[i].pt);
 }
 
-// IplImage* allocateImage(const int& width, const int& height, const int& depth, const int& channels) { return ::allocateImage(cvSize(width, height), depth, channels);}
-
-// IplImage* allocateImage(const CvSize& size, const int& depth, const int& channels) {
-//   IplImage* image = cvCreateImage(size, depth, channels);
-
-//   if (!image) {
-//     cerr << "Error: Couldn't allocate image.  Out of memory?\n" << endl;
-//     exit(-1);
-//   }
-
-//   return image;
-// }
-
-// int goToFrameNum(CvCapture* inputVideo, const int& currentFrameNum, const int& targetFrameNum) {
-//   int frameNum = currentFrameNum;
-//   if (currentFrameNum > targetFrameNum) {
-//     cerr << "Current frame number " << currentFrameNum << " is after the target frame number " << targetFrameNum << "." << endl;
-//   } else if (currentFrameNum < targetFrameNum) {
-//     IplImage* frame = cvQueryFrame(inputVideo);
-//     frameNum++;
-//     while (frame && frameNum<targetFrameNum) {
-//       frame = cvQueryFrame(inputVideo);
-//       frameNum++;
-//     }
-//   }
-  
-//   return frameNum;
-// }
-
 const Scalar Colors::color[] = {Colors::red(),
 				Colors::green(),
 				Colors::blue(),