21 |
|
/* Allocate a new set of interpolation samples (caller assigns spt[] array) */ |
22 |
|
extern INTERP2 *interp2_alloc(int nsamps); |
23 |
|
|
24 |
+ |
/* Resize interpolation array (caller must assign any new values) */ |
25 |
+ |
extern INTERP2 *interp2_realloc(INTERP2 *ip, int nsamps); |
26 |
+ |
|
27 |
|
/* Assign full set of normalized weights to interpolate the given location */ |
28 |
|
extern int interp2_weights(float wtv[], INTERP2 *ip, double x, double y); |
29 |
|
|
30 |
|
/* Get normalized weights and indexes for n best samples in descending order */ |
31 |
|
extern int interp2_topsamp(float wt[], int si[], const int n, |
32 |
|
INTERP2 *ip, double x, double y); |
30 |
– |
|
33 |
|
/* Free interpolant */ |
34 |
|
extern void interp2_free(INTERP2 *ip); |
35 |
+ |
|
36 |
+ |
/* (Re)compute anisotropic basis function interpolant (normally automatic) */ |
37 |
+ |
extern int interp2_analyze(INTERP2 *ip); |