I'm an idiot

This commit is contained in:
Phuntsok Drak-pa 2019-04-13 14:50:45 +02:00
parent bc94bb76c6
commit d2393561d6

View File

@ -30,13 +30,13 @@ void processFilenames(po::variables_map const& vm,
("input,i", po::value<path>(), "Input image") ("input,i", po::value<path>(), "Input image")
("output,o", po::value<path>(), ("output,o", po::value<path>(),
"Image output path (default: \"output_\" + input path)") "Image output path (default: \"output_\" + input path)")
("method,m", po::value<int>(), "Method number to be used (default: 1)")
("iterations,n", po::value<int>(), "Number of iterations (default: 2000)") ("iterations,n", po::value<int>(), "Number of iterations (default: 2000)")
("size,s", "Controlled size of the random shapes (default: false)") ("method,m", po::value<int>(), "Method number to be used (default: 1)")
("division,d", po::value<int>(), ("division,d", po::value<int>(),
"For method 5, number of regions the reference image should be divided " "For method 5, number of regions the reference image should be divided "
"into. For instance, -d4 will divide the reference image into a 4*4 " "into. For instance, -d4 will divide the reference image into a 4*4 "
"matrice of smaller images. (default: 1)") "matrice of smaller images. (default: 1)")
("size,s", "Controlled size of the random shapes (default: false)")
("verbose,v", "Enables verbosity"); ("verbose,v", "Enables verbosity");
po::variables_map vm; po::variables_map vm;
po::store(po::parse_command_line(t_ac, t_av, desc), vm); po::store(po::parse_command_line(t_ac, t_av, desc), vm);
@ -56,6 +56,6 @@ void processFilenames(po::variables_map const& vm,
vm.count("iterations") ? vm["iterations"].as<int>() : DEFAULT_ITERATIONS, vm.count("iterations") ? vm["iterations"].as<int>() : DEFAULT_ITERATIONS,
vm.count("method") ? vm["method"].as<int>() : 1, vm.count("method") ? vm["method"].as<int>() : 1,
vm.count("division") ? vm["division"].as<int>() : 1, vm.count("division") ? vm["division"].as<int>() : 1,
vm.count("size") ? true : false, vm.count("size"),
vm.count("verbose") ? true : false); vm.count("verbose"));
} }