contour-creator/src/main.cpp

22 lines
550 B
C++
Raw Normal View History

2024-04-06 11:18:28 +00:00
#include "HeightMap.hh"
2024-04-06 15:22:03 +00:00
#include <iostream>
2024-04-08 15:34:03 +00:00
#include <ostream>
2024-04-06 11:18:28 +00:00
int main(int argc, const char* argv[])
{
const char* filepath = argv[1];
HeightMap map(filepath);
2024-04-08 15:34:03 +00:00
std::cout << "x: " << map.width << " y: " << map.height << "\n";
std::cout << "max: " << map.max << " min: " << map.min << "\n";
for (int y = 0; y < map.height; y++)
2024-04-06 11:18:28 +00:00
{
2024-04-08 15:34:03 +00:00
for (int x = 0; x < map.width; x++)
2024-04-06 11:18:28 +00:00
{
std::cout << map.get_pixel(x, y) << " ";
}
std::cout << "\n";
}
2024-04-08 15:34:03 +00:00
std::cout << "\nend🤡\n";
2024-04-06 11:18:28 +00:00
}