From: Gary Bradski Date: Thu, 2 Dec 2010 10:04:50 +0000 (+0000) Subject: docing the use of SURF+FLANN for planar object detection X-Git-Tag: accepted/2.0/20130307.220821~3976 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=049e284eb43c57f71fbd9782e37a31b0cbc0ab90;p=profile%2Fivi%2Fopencv.git docing the use of SURF+FLANN for planar object detection --- diff --git a/samples/c/find_obj.cpp b/samples/c/find_obj.cpp index 5ff4b20..37924e4 100644 --- a/samples/c/find_obj.cpp +++ b/samples/c/find_obj.cpp @@ -14,7 +14,17 @@ #include using namespace std; +void help() +{ + printf( + "This program demonstrated the use of the SURF Detector and Descriptor using\n" + "either FLANN (fast approx nearst neighbor classification) or brute force matching\n" + "on planar objects.\n" + "Call:\n" + "./find_obj [ ]\n\n" + ); +} // define whether to use approximate nearest-neighbor search #define USE_FLANN @@ -205,7 +215,7 @@ int main(int argc, char** argv) const char* scene_filename = argc == 3 ? argv[2] : "box_in_scene.png"; CvMemStorage* storage = cvCreateMemStorage(0); - + help(); cvNamedWindow("Object", 1); cvNamedWindow("Object Correspond", 1);