From 8dd85835966e3f255a16772f970654b5a1081202 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Sat, 4 Dec 2010 08:29:48 +0000 Subject: [PATCH] revamped --- samples/cpp/houghlines.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/samples/cpp/houghlines.cpp b/samples/cpp/houghlines.cpp index f6dcf12091..1fbbfc3fd2 100644 --- a/samples/cpp/houghlines.cpp +++ b/samples/cpp/houghlines.cpp @@ -6,6 +6,13 @@ using namespace cv; using namespace std; +void help() +{ + cout << "\nThis program demonstrates line finding with the Hough transform.\n" + "Call:\n" + "./houghlines [image_len -- Default is pic1.png\n" << endl; +} + int main(int argc, char** argv) { const char* filename = argc >= 2 ? argv[1] : "pic1.png"; @@ -16,7 +23,7 @@ int main(int argc, char** argv) cout << "can not open " << filename << endl; cout << "Usage: houghlines " << endl; } - + help(); Mat dst, cdst; Canny(src, dst, 50, 200, 3); cvtColor(dst, cdst, CV_GRAY2BGR);