From f960d61faf39e83d6a5a4262bbc33760daa5eeb8 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Thu, 2 Dec 2010 09:40:58 +0000 Subject: [PATCH] added help --- samples/c/fback_c.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/samples/c/fback_c.c b/samples/c/fback_c.c index ce6b7c0..6a798e2 100644 --- a/samples/c/fback_c.c +++ b/samples/c/fback_c.c @@ -1,6 +1,15 @@ #include #include +#include +void help() +{ + printf( + "This program demonstrate dense \"Farneback\n optical flow\n" + "It read from camera 0, and shows how to use and display dense Franeback optical flow\n" + "Call:\n" + "./fback_c\n\n"); +} void drawOptFlowMap(const CvMat* flow, CvMat* cflowmap, int step, double scale, CvScalar color) { @@ -20,6 +29,8 @@ int main(int argc, char** argv) CvCapture* capture = cvCreateCameraCapture(0); CvMat* prevgray = 0, *gray = 0, *flow = 0, *cflow = 0; + help(); + if( !capture ) return -1; -- 2.7.4