Mercurial Hosting > traffic-intelligence
comparison include/Parameters.hpp @ 137:445e773c9be3
created the parameter structure to parse parameters (bug remaining)
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 19 Aug 2011 01:35:45 -0400 |
parents | 0f790de9437e |
children | 76610dcf3b8d |
comparison
equal
deleted
inserted
replaced
136:0f790de9437e | 137:445e773c9be3 |
---|---|
3 | 3 |
4 /// \todo Class for parameters, with utilities to save and load from configuration files | 4 /// \todo Class for parameters, with utilities to save and load from configuration files |
5 | 5 |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 namespace boost{ | |
9 namespace program_options { | |
10 class options_description; | |
11 class variables_map; | |
12 } | |
13 } | |
14 | |
8 struct KLTFeatureTrackingParameters { | 15 struct KLTFeatureTrackingParameters { |
9 /// whether to load saved features, or compute them | 16 std::string videoFilename; |
17 std::string databaseFilename; | |
18 std::string homographyFilename; | |
19 std::string maskFilename; | |
10 bool loadFeatures; | 20 bool loadFeatures; |
11 | |
12 std::string videoFilename; | |
13 int videoFPS; | |
14 int measurementPrecision; | |
15 bool display; | 21 bool display; |
22 float videoFPS; | |
23 // int measurementPrecision; | |
16 int frame1; | 24 int frame1; |
17 int nFrames; | 25 int nFrames; |
18 // feature tracking | 26 // feature tracking |
19 int maxNFeatures; | 27 int maxNFeatures; |
20 float featureQuality; | 28 float featureQuality; |
26 unsigned int nDisplacements; | 34 unsigned int nDisplacements; |
27 float minFeatureDisplacement; | 35 float minFeatureDisplacement; |
28 float accelerationBound; | 36 float accelerationBound; |
29 float deviationBound; | 37 float deviationBound; |
30 int nFramesSmoothing; | 38 int nFramesSmoothing; |
31 int nFramesVelocity; | 39 //int nFramesVelocity; |
32 int maxNumberTrackingIterations; | 40 int maxNumberTrackingIterations; |
33 float minTrackingError; | 41 float minTrackingError; |
34 float derivLambda; | |
35 unsigned int minFeatureTime; | 42 unsigned int minFeatureTime; |
36 float mmConnectionDistance; | 43 float mmConnectionDistance; |
37 float mmSegmentationDistance; | 44 float mmSegmentationDistance; |
38 float maxDistance; | 45 float maxDistance; |
39 float minVelocityCosine; | 46 float minVelocityCosine; |
40 int minNFeaturesPerGroup; | 47 int minNFeaturesPerGroup; |
41 | 48 |
42 //KLTFeatureTrackingParameters(const int argc, char* argv[]); | 49 std::string parameterDescription; |
50 | |
51 KLTFeatureTrackingParameters(const int argc, char* argv[]); | |
43 | 52 |
44 //KLTFeatureTrackingParameters(bool loadFeatures, std::string videoFilename, int videoFPS, int measurementPrecision, int frame1, int nFrames, int maxNFeatures, float featureQuality, float minFeatureDistanceKLT, int windowSize, int pyramidLevel, int nDisplacements, float minFeatureDisplacement, float accelerationBound, float deviationBound, int nFramesSmoothing, int nFramesVelocity, int maxNumberTrackingIterations, float minTrackingError, int minFeatureTime, float mmConnectionDistance, float mmSegmentationDistance, float maxDistance, float minVelocityCosine, int minNFeaturesPerGroup); | 53 //KLTFeatureTrackingParameters(bool loadFeatures, std::string videoFilename, int videoFPS, int measurementPrecision, int frame1, int nFrames, int maxNFeatures, float featureQuality, float minFeatureDistanceKLT, int windowSize, int pyramidLevel, int nDisplacements, float minFeatureDisplacement, float accelerationBound, float deviationBound, int nFramesSmoothing, int nFramesVelocity, int maxNumberTrackingIterations, float minTrackingError, int minFeatureTime, float mmConnectionDistance, float mmSegmentationDistance, float maxDistance, float minVelocityCosine, int minNFeaturesPerGroup); |
45 | 54 |
55 std::string getParameterDescription(boost::program_options::options_description& options, const boost::program_options::variables_map& vm, const std::string& separator = " ") const; | |
46 }; | 56 }; |
47 | 57 |
48 #endif | 58 #endif |