mirror of
https://gitlab.com/Trygve/contour-creator.git
synced 2024-12-21 21:30:18 +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;
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user