32int entry(
const int argc,
char **argv)
37 arser.add_argument(
"--min_percentile")
38 .type(arser::DataType::FLOAT)
40 .help(
"Set min percentile (default: 1)");
41 arser.add_argument(
"--max_percentile")
42 .type(arser::DataType::FLOAT)
44 .help(
"Set max percentile (default: 99)");
45 arser.add_argument(
"-o").default_value(
"out.circle").help(
"Path to output circle model");
47 arser.add_argument(
"circle").help(
"Path to input circle model");
48 arser.add_argument(
"minmax").help(
"Path to minmax data in hdf5");
51 arser.parse(argc, argv);
53 catch (
const std::runtime_error &err)
55 std::cout << err.what() << std::endl;
60 std::string minmax_path =
arser.get<std::string>(
"minmax");
61 std::string circle_path =
arser.get<std::string>(
"circle");
62 std::string output_path =
arser.get<std::string>(
"-o");
63 float min_percentile =
arser.get<
float>(
"--min_percentile");
64 float max_percentile =
arser.get<
float>(
"--max_percentile");
71 catch (
const std::runtime_error &err)
73 std::cout << err.what() << std::endl;