From: Gary Bradski Date: Wed, 1 Dec 2010 02:50:27 +0000 (+0000) Subject: put doc comments on top X-Git-Tag: accepted/2.0/20130307.220821~3992 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4db4569b60f12ac720d6f7388ca3a84e26e23135;p=profile%2Fivi%2Fopencv.git put doc comments on top --- diff --git a/samples/c/blobtrack_sample.cpp b/samples/c/blobtrack_sample.cpp index b0217f1..f613bdb 100644 --- a/samples/c/blobtrack_sample.cpp +++ b/samples/c/blobtrack_sample.cpp @@ -5,6 +5,32 @@ #include +void help() +{ + printf("\nExample of using background_segm.hpp and legacy blobtrack.hpp (somewhat out of date\n" + "This somewhat over complex program segments blobs and tracks them with a Kalman filter\n" + "Usage:\n" + ); + printf("blobtrack [fg=] [bd=]\n" + " [bt=] [btpp=]\n" + " [bta=\n" + " [bta_data=\n" + " [bt_corr=]\n" + " [btgen=]\n" + " [track=]\n" + " [scale=] [noise=] [IVar=]\n" + " [FGTrainFrames=]\n" + " [btavi=] [fgavi=]\n" + " \n"); + + printf("WHERE:\n is way of blob position corrrection for \"Blob Tracking\" module\n" + " =none,PostProcRes\n" + " is number of frames for FG training\n" + " is file name for save tracked trajectories\n" + " is file name for data base of trajectory analysis module\n" + " is file name of avi to process by BlobTrackerAuto\n"); +} + /* Select appropriate case insensitive string comparison function: */ #if defined WIN32 || defined _MSC_VER #define MY_STRNICMP strnicmp @@ -403,24 +429,7 @@ int main(int argc, char* argv[]) if(argc < 2) { /* Print help: */ int i; - printf("blobtrack [fg=] [bd=]\n" - " [bt=] [btpp=]\n" - " [bta=\n" - " [bta_data=\n" - " [bt_corr=]\n" - " [btgen=]\n" - " [track=]\n" - " [scale=] [noise=] [IVar=]\n" - " [FGTrainFrames=]\n" - " [btavi=] [fgavi=]\n" - " \n"); - - printf(" is way of blob position corrrection for \"Blob Tracking\" module\n" - " =none,PostProcRes\n" - " is number of frames for FG training\n" - " is file name for save tracked trajectories\n" - " is file name for data base of trajectory analysis module\n" - " is file name of avi to process by BlobTrackerAuto\n"); + help(); puts("\nModules:"); #define PR(_name,_m,_mt)\