| 1 |
< |
/* Copyright (c) 1997 Regents of the University of California */ |
| 2 |
< |
|
| 3 |
< |
/* SCCSid "$SunId$ LBL" */ |
| 4 |
< |
|
| 1 |
> |
/* RCSid: $Id$ */ |
| 2 |
|
/* |
| 3 |
|
* Header file for 3D warping routines. |
| 4 |
|
*/ |
| 23 |
|
typedef float W3VEC[3]; /* vector type for 3D warp maps */ |
| 24 |
|
|
| 25 |
|
struct grid3d { |
| 29 |
– |
W3VEC gmin, gmax; /* grid boundaries */ |
| 30 |
– |
GNDX gn; /* grid dimensions */ |
| 31 |
– |
W3VEC gstep; /* grid voxel size */ |
| 26 |
|
unsigned char flags; /* interpolation flags */ |
| 27 |
+ |
GNDX gn; /* grid dimensions */ |
| 28 |
+ |
W3VEC gmin, gstep; /* grid corner and voxel size */ |
| 29 |
|
LUTAB gtab; /* grid lookup table */ |
| 30 |
|
}; /* a regular, sparse warping grid */ |
| 31 |
|
|
| 32 |
|
typedef struct { |
| 33 |
< |
W3VEC *ip, *op; /* discrete input/output pairs */ |
| 33 |
> |
W3VEC *ip, *ov; /* discrete input/displ. pairs */ |
| 34 |
|
int npts; /* number of point pairs */ |
| 35 |
|
W3VEC llim, ulim; /* lower and upper input limits */ |
| 36 |
|
double d2min, d2max; /* min. and max. point distance^2 */ |