From 7037874923b56e0a1b2208e90c048f924ad916de Mon Sep 17 00:00:00 2001 From: Trygve Date: Tue, 7 May 2024 19:44:03 +0200 Subject: [PATCH] Added statistics cli arg --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 6f66b8b..c47e716 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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";