mirror of
https://gitlab.com/Trygve/contour-creator.git
synced 2024-11-17 12:10:14 +00:00
Added statistics cli arg
This commit is contained in:
parent
a785407c6d
commit
7037874923
@ -314,10 +314,13 @@ int main(int argc, const char* argv[])
|
|||||||
std::string input_file;
|
std::string input_file;
|
||||||
cmdl(1) >> input_file;
|
cmdl(1) >> input_file;
|
||||||
|
|
||||||
|
|
||||||
HeightMap map(input_file.c_str());
|
HeightMap map(input_file.c_str());
|
||||||
if (cmdl[{"-b", "--blur"}])
|
if (cmdl[{"-b", "--blur"}])
|
||||||
map.blur(0.8);
|
map.blur(0.8);
|
||||||
|
|
||||||
|
if (cmdl[{"--stats"}])
|
||||||
|
map.statistics();
|
||||||
|
|
||||||
auto lines = create_lines(&map, interval);
|
auto lines = create_lines(&map, interval);
|
||||||
write_output_file(lines, output_file.c_str(), &map);
|
write_output_file(lines, output_file.c_str(), &map);
|
||||||
std::cout << "Contours written to " << output_file << " 🗺️\n";
|
std::cout << "Contours written to " << output_file << " 🗺️\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user