| 26 |
|
typedef float W3VEC[3]; /* vector type for 3D warp maps */ |
| 27 |
|
|
| 28 |
|
struct grid3d { |
| 29 |
– |
W3VEC gmin, gmax; /* grid boundaries */ |
| 30 |
– |
GNDX gn; /* grid dimensions */ |
| 31 |
– |
W3VEC gstep; /* grid voxel size */ |
| 29 |
|
unsigned char flags; /* interpolation flags */ |
| 30 |
+ |
GNDX gn; /* grid dimensions */ |
| 31 |
+ |
W3VEC gmin, gstep; /* grid corner and voxel size */ |
| 32 |
|
LUTAB gtab; /* grid lookup table */ |
| 33 |
|
}; /* a regular, sparse warping grid */ |
| 34 |
|
|
| 35 |
|
typedef struct { |
| 36 |
< |
W3VEC *ip, *op; /* discrete input/output pairs */ |
| 36 |
> |
W3VEC *ip, *ov; /* discrete input/displ. pairs */ |
| 37 |
|
int npts; /* number of point pairs */ |
| 38 |
|
W3VEC llim, ulim; /* lower and upper input limits */ |
| 39 |
|
double d2min, d2max; /* min. and max. point distance^2 */ |