From 612addd04eb9d0c60c1be0c5b0cf5de33e0af9c8 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Sat, 4 Dec 2010 08:24:25 +0000 Subject: [PATCH] revamped --- samples/cpp/laplace.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/samples/cpp/laplace.cpp b/samples/cpp/laplace.cpp index 09be6e0dd5..b8fcf7b9ad 100644 --- a/samples/cpp/laplace.cpp +++ b/samples/cpp/laplace.cpp @@ -7,12 +7,22 @@ using namespace cv; using namespace std; +void help() +{ + cout << + "\nThis program demonstrates Laplace point/edge detection using OpenCV function Laplacian()\n" + "It captures from the camera of your choice: 0, 1, ... default 0\n" + "Call:\n" + "./laplace [camera #, default 0]\n" << endl; +} + int sigma = 3; int smoothType = CV_GAUSSIAN; int main( int argc, char** argv ) { VideoCapture cap; + help(); if( argc == 1 || (argc == 2 && strlen(argv[1]) == 1 && isdigit(argv[1][0]))) cap.open(argc == 2 ? argv[1][0] - '0' : 0);