diff c/Parameters.cpp @ 803:f7cf43b5ad3b dev

work in progress on stabilization
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 01 Jun 2016 01:55:45 -0400
parents 045d05cef9d0
children
line wrap: on
line diff
--- a/c/Parameters.cpp	Tue May 31 17:59:35 2016 -0400
+++ b/c/Parameters.cpp	Wed Jun 01 01:55:45 2016 -0400
@@ -20,6 +20,7 @@
     ("gf", "groups features")
     ("loading-time", "report feature and object loading times")
     ("config-file", po::value<string>(&configurationFilename), "configuration file")
+    ("display", po::value<bool>(&display)->default_value(false), "display trajectories on the video")
     ;
 
   po::positional_options_description p;
@@ -36,8 +37,11 @@
     ("interpolation-method", po::value<int>(&interpolationMethod), "Interpolation method for remapping image when correcting for distortion: 0 for INTER_NEAREST - a nearest-neighbor interpolation; 1 for INTER_LINEAR - a bilinear interpolation (used by default); 2 for INTER_CUBIC - a bicubic interpolation over 4x4 pixel neighborhood; 3 for INTER_LANCZOS4")
     ("mask-filename", po::value<string>(&maskFilename), "filename of the mask image (where features are detected)")
     ("undistort", po::value<bool>(&undistort), "undistort the video for feature tracking")
-    ("load-features", po::value<bool>(&loadFeatures), "load features from database")
-    ("display", po::value<bool>(&display), "display trajectories on the video")
+    ("stabilize-ransac-reproj-threshold", po::value<float>(&stabilizeRansacReprojThreshold), "threshold the robust RANSAC method to compute the homography with respect to the reference video frame for stabilization")
+    ("frame-homography-filename", po::value<string>(&frameHomographyFilename), "filename of the video frame used to compute the homography")
+    ("stabilize", po::value<bool>(&stabilize), "stabilize the video for feature tracking (if slight motion)")
+    //("load-features", po::value<bool>(&loadFeatures), "load features from database")
+    //("display", po::value<bool>(&display), "display trajectories on the video")
     ("video-fps", po::value<float>(&videoFPS), "original video frame rate")
     ("frame1", po::value<unsigned int>(&frame1), "first frame to process")
     ("nframes", po::value<int>(&nFrames), "number of frame to process")