From 0343513ded5c86a271594abfe7d8cf239ac53ab4 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Thu, 2 Dec 2010 09:46:50 +0000 Subject: [PATCH] added description output --- samples/c/find_obj_calonder.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/samples/c/find_obj_calonder.cpp b/samples/c/find_obj_calonder.cpp index eb168de..f92d8b8 100644 --- a/samples/c/find_obj_calonder.cpp +++ b/samples/c/find_obj_calonder.cpp @@ -9,6 +9,15 @@ using namespace std; using namespace cv; +void help() +{ + cout << "This program shows the use of the Calonder point descriptor classifier" + "SURF is used to detect interest points, Calonder is used to describe/match these points\n" + "Format:" << endl << + " classifier_file(to write) test_image file_with_train_images_filenames(txt)" << + " or" << endl << + " classifier_file(to read) test_image" << endl; +} /* * Generates random perspective transform of image */ @@ -133,15 +142,11 @@ void testCalonderClassifier( const string& classifierFilename, const string& img waitKey(); } - int main( int argc, char **argv ) { if( argc != 4 && argc != 3 ) { - cout << "Format:" << endl << - " classifier_file(to write) test_image file_with_train_images_filenames(txt)" << - " or" << endl << - " classifier_file(to read) test_image" << endl; + help(); return -1; } -- 2.7.4