From 1b4b40f1991ea4ecadbc4c828b10bc54847aa963 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Thu, 2 Dec 2010 09:57:21 +0000 Subject: [PATCH] fern docs --- samples/c/find_obj_ferns.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/samples/c/find_obj_ferns.cpp b/samples/c/find_obj_ferns.cpp index eca2426..287fbba 100644 --- a/samples/c/find_obj_ferns.cpp +++ b/samples/c/find_obj_ferns.cpp @@ -8,13 +8,20 @@ #include using namespace cv; - +void help() +{ + printf( "This program shows the use of the \"fern\" plannar PlanarObjectDetector point\n" + "descriptor classifier" + "Usage:\n" + "./find_obj_ferns [ ]\n" + "\n"); +} int main(int argc, char** argv) { const char* object_filename = argc > 1 ? argv[1] : "box.png"; const char* scene_filename = argc > 2 ? argv[2] : "box_in_scene.png"; int i; - + help(); cvNamedWindow("Object", 1); cvNamedWindow("Image", 1); cvNamedWindow("Object Correspondence", 1); @@ -31,7 +38,7 @@ int main(int argc, char** argv) if( !object.data || !image.data ) { fprintf( stderr, "Can not load %s and/or %s\n" - "Usage: find_obj [ ]\n", + "Usage: find_obj_ferns [ ]\n", object_filename, scene_filename ); exit(-1); } -- 2.7.4