mirror of
https://gitlab.com/Trygve/contour-creator.git
synced 2024-11-16 19:50:14 +00:00
19 lines
393 B
C++
19 lines
393 B
C++
#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);
|
|
}; |