9 typedef struct rect{
double minlat, maxlat,minlon,maxlon;}
rect;
11 typedef struct recti{
int minlat, maxlat,minlon,maxlon;}
recti;
47 double height(
double lon,
double lat,
void* hc,
short mode);
49 void set_SRTM3_folder(
char* folder);
51 void set_rect(
double minlat,
double maxlat,
double minlon,
double maxlon);
53 void reset_t(
double minlat,
double maxlat,
double minlon,
double maxlon);
62 double height_t(
double lon,
double lat,
void* hc,
short mode);
64 void paek_pro(
double lon,
double lat, qint64** c,
float* Ahigher,
int cc,
65 int ac,
float d,
float mperlon,
float mperlat);
71 void interpolate_linear(
int width,
int height,
double alpha,
72 double** h,
double** dhdx,
double** dhdy);
78 void interpolate_linear_mercator(
int width,
int height,
double alpha,
79 double** h,
double** dhdx,
double** dhdy);
85 void interpolate_bicubic_conv3(
int width,
int height,
double alpha,
86 double** h,
double** dhdx,
double** dhdy);
92 void interpolate_bicubic_conv3_mercator(
int width,
int height,
double alpha,
93 double** h,
double** dhdx,
double** dhdy);
99 void get_sorted_grid_data(
short** heights,
double** lons,
double** lats,
101 recti get_GridRect();
102 int correct_hgt(
char* filename);
107 char SRTM3folder[1000];
113 double ltdy(
double lat);
114 double ltdx(
double lon);
116 void sort_GridList(
long s,
long e);
118 short *qsh;
double *qslon,*qslat;
120 double Cubic_conv_kernel3(
double x);
122 double Cubic_conv_kernel3_d(
double x);
holds data grid information
holds weights for cubic interpolation
holds data grid information with angles multiplied by 1200
holds digital elevation model extracted from SRTM3 data