Changeset 16119 for trunk/Ohana/src/opihi/cmd.data/spline_apply.c
- Timestamp:
- Jan 17, 2008, 1:21:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/spline_apply.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/spline_apply.c
r7917 r16119 1 1 # include "data.h" 2 2 3 void spline (float *x, float *y, int N, float *y2); 4 float splint (float *x, float *y, float *y2, int N, float X); 5 6 int spline_apply (int argc, char **argv) { 3 // need to rename this as an image function 4 int spline_apply_cmd (int argc, char **argv) { 7 5 8 6 int i, j, I, J; … … 77 75 Ty2[j] = *V2; 78 76 } 79 Tx1[i] = splin t(Tyc, Ty1, Ty2, Ny, y);77 Tx1[i] = spline_apply (Tyc, Ty1, Ty2, Ny, y); 80 78 } 81 spline (Txc, Tx1, Nx, Tx2);79 spline_construct (Txc, Tx1, Nx, Tx2); 82 80 83 81 /* apply x-dir spline to new image */ 84 82 for (I = 0; I < nx; I++, V++) { 85 83 x = I * rx; 86 *V = splin t(Txc, Tx1, Tx2, Nx, x);84 *V = spline_apply (Txc, Tx1, Tx2, Nx, x); 87 85 } 88 86 }
Note:
See TracChangeset
for help on using the changeset viewer.
