Changeset 16119 for trunk/Ohana/src/opihi/cmd.data
- Timestamp:
- Jan 17, 2008, 1:21:51 PM (19 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.data
- Files:
-
- 3 edited
-
init.c (modified) (2 diffs)
-
spline_apply.c (modified) (2 diffs)
-
spline_construct.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/init.c
r16117 r16119 87 87 int shift PROTO((int, char **)); 88 88 int sort_vectors PROTO((int, char **)); 89 int spline_apply PROTO((int, char **));90 int spline_construct PROTO((int, char **));89 int spline_apply_cmd PROTO((int, char **)); 90 int spline_construct_cmd PROTO((int, char **)); 91 91 int stats PROTO((int, char **)); 92 92 int style PROTO((int, char **)); … … 208 208 {"shift", shift, "shift data in an image"}, 209 209 {"sort", sort_vectors, "sort list of vectors"}, 210 {"spline.apply", spline_apply ,"apply spline fit to generate an image"},211 {"spline.const", spline_construct , "create spline 2nd deriv. terms"},210 {"spline.apply", spline_apply_cmd, "apply spline fit to generate an image"}, 211 {"spline.const", spline_construct_cmd, "create spline 2nd deriv. terms"}, 212 212 {"stats", stats, "give statistics on a portion of a buffer"}, 213 213 {"style", style, "set the style for graph plots"}, -
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 } -
trunk/Ohana/src/opihi/cmd.data/spline_construct.c
r7917 r16119 1 1 # include "data.h" 2 2 3 int spline_construct (int argc, char **argv) { 3 // need to rename this as an image function 4 int spline_construct_cmd (int argc, char **argv) { 4 5 5 6 int i, j, Nx, Ny, xdir; … … 54 55 } 55 56 56 spline (Tx, Ty, Ny, Ty2);57 spline_construct (Tx, Ty, Ny, Ty2); 57 58 58 59 /* copy derivatives to output buffer */
Note:
See TracChangeset
for help on using the changeset viewer.
