contour-creator/HeightMap.hh

19 lines
393 B
C++
Raw Normal View History

2024-04-06 11:18:28 +00:00
#include <gdal/gdal.h>
#include "gdal/gdal_priv.h"
#include <iostream>
#include <stdfloat>
/**
@brief stores the contents of a tif file with float32 values
*/
class HeightMap
{
public:
float* data;
int x_size; //!< x dimension in pixels
int y_size; //!< y dimension in pixels
HeightMap(const char* filepath);
float get_pixel(int x,int y);
};