summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2010-06-22 16:29:01 -0400
committerGuillaume Seguin <guillaume@segu.in>2010-06-22 16:29:01 -0400
commitc958e0b1d003be31b62c71be9bf0f0094e4e1db1 (patch)
treef6449c0f843f0bcba3b2ca5e9d90ddafdaf7d43b
parent0d98cfb8edee2443b8af4d8dc998908a0e055c3e (diff)
downloadcmu-c958e0b1d003be31b62c71be9bf0f0094e4e1db1.tar.gz
cmu-c958e0b1d003be31b62c71be9bf0f0094e4e1db1.tar.bz2
Fix warnings
-rw-r--r--libmoped/libs/opencv-tracking/include/feature.h4
-rw-r--r--libmoped/libs/opencv-tracking/include/feature_detector.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libmoped/libs/opencv-tracking/include/feature.h b/libmoped/libs/opencv-tracking/include/feature.h
index f781992..8d1239b 100644
--- a/libmoped/libs/opencv-tracking/include/feature.h
+++ b/libmoped/libs/opencv-tracking/include/feature.h
@@ -22,6 +22,7 @@ public:
virtual void detect(const cv::Mat& image,
std::vector<cv::KeyPoint>& keypoints,
const cv::Mat& mask = cv::Mat() ) = 0 ;
+ virtual ~FeatureDetector () {}
};
/** \class DescriptorExtractor
@@ -53,6 +54,7 @@ class DescriptorExtractor
*/
virtual void compute_dense(const cv::Mat& image,
cv::Mat& descriptors);
+ virtual ~DescriptorExtractor () {}
};
/** \class DescriptorMatcher
@@ -85,6 +87,7 @@ class DescriptorMatcher
std::vector<int>& matches,
std::vector<float>& distance) const = 0;
+ virtual ~DescriptorMatcher () {}
};
//typedef std::vector<cv::KeyPoint> KeyPointCollection;
@@ -110,6 +113,7 @@ public:
//! Search for training keypoints in the test image
virtual void search(const Mat& test_image, vector<KeyPoint>& output_found_points, vector<int>& training_point_indices){};
+ virtual ~DescriptorMatchGeneric () {}
};
diff --git a/libmoped/libs/opencv-tracking/include/feature_detector.h b/libmoped/libs/opencv-tracking/include/feature_detector.h
index f343545..433cbf2 100644
--- a/libmoped/libs/opencv-tracking/include/feature_detector.h
+++ b/libmoped/libs/opencv-tracking/include/feature_detector.h
@@ -23,7 +23,7 @@ public:
keypoints.clear();
keypoints.resize(corners.size());
- for (int i=0; i<keypoints.size(); ++i){
+ for (int i=0; i<(int)keypoints.size(); ++i){
keypoints[i] = cv::KeyPoint(corners[i], 1);
}
}