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";