Added statistics cli arg

This commit is contained in:
Trygve 2024-05-07 19:44:03 +02:00
parent a785407c6d
commit 7037874923
1 changed files with 4 additions and 1 deletions

View File

@ -314,10 +314,13 @@ int main(int argc, const char* argv[])
std::string input_file;
cmdl(1) >> input_file;
HeightMap map(input_file.c_str());
if (cmdl[{"-b", "--blur"}])
map.blur(0.8);
if (cmdl[{"--stats"}])
map.statistics();
auto lines = create_lines(&map, interval);
write_output_file(lines, output_file.c_str(), &map);
std::cout << "Contours written to " << output_file << " 🗺️\n";