mirror of
https://gitlab.com/Trygve/contour-creator.git
synced 2024-11-16 19:50:14 +00:00
17 lines
409 B
C++
17 lines
409 B
C++
|
#include "HeightMap.hh"
|
||
|
|
||
|
int main(int argc, const char* argv[])
|
||
|
{
|
||
|
const char* filepath = argv[1];
|
||
|
HeightMap map(filepath);
|
||
|
std::cout << "x: " << map.x_size << " y: " << map.y_size << "\n";
|
||
|
for (int y = 0; y < map.y_size; y++)
|
||
|
{
|
||
|
for (int x = 0; x < map.x_size; x++)
|
||
|
{
|
||
|
std::cout << map.get_pixel(x, y) << " ";
|
||
|
}
|
||
|
std::cout << "\n";
|
||
|
}
|
||
|
|
||
|
}
|