Commit b8fba9d5 authored by berak's avatar berak

fix CommandLineParser usage in samples

parent 159534a2
...@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) { ...@@ -158,7 +158,7 @@ int main(int argc, char *argv[]) {
} }
int markersX = parser.get<int>("w"); int markersX = parser.get<int>("w");
int markersY = parser.get<int>("w"); int markersY = parser.get<int>("h");
float markerLength = parser.get<float>("l"); float markerLength = parser.get<float>("l");
float markerSeparation = parser.get<float>("s"); float markerSeparation = parser.get<float>("s");
int dictionaryId = parser.get<int>("d"); int dictionaryId = parser.get<int>("d");
......
...@@ -137,11 +137,11 @@ static Mat drawGoodMatches( ...@@ -137,11 +137,11 @@ static Mat drawGoodMatches(
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
const char* keys = const char* keys =
"{ h help | false | print help message }" "{ h help | | print help message }"
"{ l left | box.png | specify left image }" "{ l left | box.png | specify left image }"
"{ r right | box_in_scene.png | specify right image }" "{ r right | box_in_scene.png | specify right image }"
"{ o output | SURF_output.jpg | specify output save path }" "{ o output | SURF_output.jpg | specify output save path }"
"{ m cpu_mode | false | run without OpenCL }"; "{ m cpu_mode | | run without OpenCL }";
CommandLineParser cmd(argc, argv, keys); CommandLineParser cmd(argc, argv, keys);
if (cmd.has("help")) if (cmd.has("help"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment