Changeset 34523
- Timestamp:
- Oct 7, 2012, 2:37:19 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data
- Files:
-
- 2 edited
-
spline_apply.c (modified) (3 diffs)
-
spline_construct.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data/spline_apply.c
r34088 r34523 2 2 3 3 // need to rename this as an image function 4 int spline_apply_cmd(int argc, char **argv) {4 int imspline_apply (int argc, char **argv) { 5 5 6 6 int i, j, I, J; … … 11 11 12 12 if (argc != 7) { 13 gprint (GP_ERR, "USAGE: spline_apply <Y> <Y2> <out> (x/y) Nx Ny\n");13 gprint (GP_ERR, "USAGE: imspline_apply <Y> <Y2> <out> (x/y) Nx Ny\n"); 14 14 return (FALSE); 15 15 } … … 75 75 Ty2[j] = *V2; 76 76 } 77 Tx1[i] = spline_apply (Tyc, Ty1, Ty2, Ny, y);77 Tx1[i] = spline_apply_flt (Tyc, Ty1, Ty2, Ny, y); 78 78 } 79 spline_construct (Txc, Tx1, Nx, Tx2);79 spline_construct_flt (Txc, Tx1, Nx, Tx2); 80 80 81 81 /* apply x-dir spline to new image */ 82 82 for (I = 0; I < nx; I++, V++) { 83 83 x = I * rx; 84 *V = spline_apply (Txc, Tx1, Tx2, Nx, x);84 *V = spline_apply_flt (Txc, Tx1, Tx2, Nx, x); 85 85 } 86 86 } -
branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data/spline_construct.c
r34088 r34523 2 2 3 3 // need to rename this as an image function 4 int spline_construct_cmd(int argc, char **argv) {4 int imspline_construct (int argc, char **argv) { 5 5 6 6 int i, j, Nx, Ny; … … 9 9 10 10 if (argc != 4) { 11 gprint (GP_ERR, "USAGE: spline_construct <in> <out> (x/y)\n");11 gprint (GP_ERR, "USAGE: imspline_construct <in> <out> (x/y)\n"); 12 12 return (FALSE); 13 13 } … … 55 55 } 56 56 57 spline_construct (Tx, Ty, Ny, Ty2);57 spline_construct_flt (Tx, Ty, Ny, Ty2); 58 58 59 59 /* copy derivatives to output buffer */
Note:
See TracChangeset
for help on using the changeset viewer.
