diff --git a/samples/cpp/matcher_simple.cpp b/samples/cpp/matcher_simple.cpp index 3c9b3ee908..77b5ab6137 100644 --- a/samples/cpp/matcher_simple.cpp +++ b/samples/cpp/matcher_simple.cpp @@ -5,11 +5,19 @@ using namespace cv; +void help() +{ + printf("\nThis program demonstrates using features2d detector, descriptor extractor and simple matcher\n" + "Using the SURF desriptor:\n" + "\n" + "Usage: matcher_simple \n"); +} + int main(int argc, char** argv) { if(argc != 3) { - printf("Usage: matcher_simple \n"); + help(); return -1; }