From 998fab0ef543eceff041d7a18a310692031aebf8 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Tue, 21 Dec 2010 11:37:08 +0000 Subject: [PATCH] warningx fixed under vs2008 --- modules/contrib/src/chamfermatching.cpp | 2 +- samples/cpp/brief_match_test.cpp | 4 +- samples/cpp/fitellipse.cpp | 2 +- samples/cpp/kmeans.cpp | 2 +- samples/cpp/lkdemo.cpp | 2 +- samples/cpp/minarea.cpp | 2 +- samples/cpp/starter_video.cpp | 106 +++++----- samples/cpp/video_homography.cpp | 330 ++++++++++++++++---------------- tests/cv/src/achesscorners.cpp | 2 +- 9 files changed, 226 insertions(+), 226 deletions(-) diff --git a/modules/contrib/src/chamfermatching.cpp b/modules/contrib/src/chamfermatching.cpp index 099751c..f98de6c 100644 --- a/modules/contrib/src/chamfermatching.cpp +++ b/modules/contrib/src/chamfermatching.cpp @@ -1155,7 +1155,7 @@ ChamferMatcher::Matches* ChamferMatcher::Matching::matchTemplates(Mat& dist_img, * @param edge_img Edge image * @return a match object */ -ChamferMatcher::Matches* ChamferMatcher::Matching::matchEdgeImage(Mat& edge_img, const ImageRange& range, float orientation_weight, int max_matches, float min_match_distance) +ChamferMatcher::Matches* ChamferMatcher::Matching::matchEdgeImage(Mat& edge_img, const ImageRange& range, float orientation_weight, int /*max_matches*/, float /*min_match_distance*/) { CV_Assert(edge_img.channels()==1); diff --git a/samples/cpp/brief_match_test.cpp b/samples/cpp/brief_match_test.cpp index e9824fb..ee4ba0e 100644 --- a/samples/cpp/brief_match_test.cpp +++ b/samples/cpp/brief_match_test.cpp @@ -44,7 +44,7 @@ void matches2points(const vector& matches, const vector& kpts_ } -double match(const vector& kpts_train, const vector& kpts_query, DescriptorMatcher& matcher, +double match(const vector& /*kpts_train*/, const vector& /*kpts_query*/, DescriptorMatcher& matcher, const Mat& train, const Mat& query, vector& matches) { @@ -106,7 +106,7 @@ int main(int ac, char ** av) cout << "matching with BruteForceMatcher" << endl; BruteForceMatcher matcher; vector matches_lut; - float lut_time = match(kpts_1, kpts_2, matcher, desc_1, desc_2, matches_lut); + float lut_time = (float)match(kpts_1, kpts_2, matcher, desc_1, desc_2, matches_lut); cout << "done BruteForceMatcher matching. took " << lut_time << " seconds" << endl; cout << "matching with BruteForceMatcher" << endl; diff --git a/samples/cpp/fitellipse.cpp b/samples/cpp/fitellipse.cpp index 49e306b..8ce6b26 100644 --- a/samples/cpp/fitellipse.cpp +++ b/samples/cpp/fitellipse.cpp @@ -59,7 +59,7 @@ int main( int argc, char** argv ) // Define trackbar callback functon. This function find contours, // draw it and approximate it by ellipses. -void processImage(int h, void*) +void processImage(int /*h*/, void*) { vector > contours; Mat bimage = image >= sliderPos; diff --git a/samples/cpp/kmeans.cpp b/samples/cpp/kmeans.cpp index 3aafbed..4a48155 100644 --- a/samples/cpp/kmeans.cpp +++ b/samples/cpp/kmeans.cpp @@ -14,7 +14,7 @@ void help() "./kmeans\n" << endl; } -int main( int argc, char** argv ) +int main( int /*argc*/, char** /*argv*/ ) { const int MAX_CLUSTERS = 5; Scalar colorTab[] = diff --git a/samples/cpp/lkdemo.cpp b/samples/cpp/lkdemo.cpp index 45ba780..94d20d3 100644 --- a/samples/cpp/lkdemo.cpp +++ b/samples/cpp/lkdemo.cpp @@ -26,7 +26,7 @@ void help() Point2f pt; bool addRemovePt = false; -void onMouse( int event, int x, int y, int flags, void* param ) +void onMouse( int event, int x, int y, int /*flags*/, void* /*param*/ ) { if( event == CV_EVENT_LBUTTONDOWN ) { diff --git a/samples/cpp/minarea.cpp b/samples/cpp/minarea.cpp index 5cd84d4..34afab9 100644 --- a/samples/cpp/minarea.cpp +++ b/samples/cpp/minarea.cpp @@ -16,7 +16,7 @@ void help() -int main( int argc, char** argv ) +int main( int /*argc*/, char** /*argv*/ ) { Mat img(500, 500, CV_8UC3); RNG& rng = theRNG(); diff --git a/samples/cpp/starter_video.cpp b/samples/cpp/starter_video.cpp index a9119ac..b68c62b 100644 --- a/samples/cpp/starter_video.cpp +++ b/samples/cpp/starter_video.cpp @@ -1,12 +1,12 @@ /* - * starter_video.cpp - * - * Created on: Nov 23, 2010 - * Author: Ethan Rublee - * - * A starter sample for using opencv, get a video stream and display the images - * easy as CV_PI right? - */ +* starter_video.cpp +* +* Created on: Nov 23, 2010 +* Author: Ethan Rublee +* +* A starter sample for using opencv, get a video stream and display the images +* easy as CV_PI right? +*/ #include #include #include @@ -16,55 +16,55 @@ using namespace std; //hide the local functions in an anon namespace namespace { -void help(char** av) { - cout << "\nThis program justs gets you started reading images from video\n" - "Usage:\n./" << av[0] << "