Changeset 34525 for branches/eam_branches/ipp-20120905/Ohana/src/opihi
- Timestamp:
- Oct 7, 2012, 2:47:52 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905/Ohana/src/opihi
- Files:
-
- 3 added
- 3 edited
-
cmd.data/Makefile (modified) (1 diff)
-
cmd.data/init.c (modified) (2 diffs)
-
cmd.data/spline.c (added)
-
cmd.data/spline_commands.c (added)
-
include/data.h (modified) (2 diffs)
-
lib.data/SplineOps.c (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data/Makefile
r34524 r34525 114 114 $(SRC)/shift.$(ARCH).o \ 115 115 $(SRC)/sort.$(ARCH).o \ 116 $(SRC)/spline.$(ARCH).o \ 117 $(SRC)/spline_commands.$(ARCH).o \ 116 118 $(SRC)/imspline_apply.$(ARCH).o \ 117 119 $(SRC)/imspline_construct.$(ARCH).o \ -
branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data/init.c
r34524 r34525 102 102 int shift PROTO((int, char **)); 103 103 int sort_vectors PROTO((int, char **)); 104 int spline_command PROTO((int, char **)); 104 105 int imspline_apply PROTO((int, char **)); 105 106 int imspline_construct PROTO((int, char **)); … … 254 255 {1, "shift", shift, "shift data in an image"}, 255 256 {1, "sort", sort_vectors, "sort list of vectors"}, 257 {1, "spline", spline_command, "shift data in an image"}, 256 258 {1, "imspline.apply", imspline_apply, "apply spline fit to generate an image"}, 257 259 {1, "imspline.const", imspline_construct, "create spline 2nd deriv. terms"}, -
branches/eam_branches/ipp-20120905/Ohana/src/opihi/include/data.h
r31636 r34525 84 84 85 85 /* in spline.c */ 86 void spline_construct (float *x, float *y, int N, float *y2); 87 float spline_apply (float *x, float *y, float *y2, int N, float X); 86 void spline_construct_flt (float *x, float *y, int N, float *y2); 87 float spline_apply_flt (float *x, float *y, float *y2, int N, float X); 88 void spline_construct_dbl (opihi_flt *x, opihi_flt *y, int N, opihi_flt *y2); 89 opihi_flt spline_apply_dbl (opihi_flt *x, opihi_flt *y, opihi_flt *y2, int N, opihi_flt X); 88 90 89 91 /* in svdcmp.c */ … … 168 170 void FreeQueues (void); 169 171 void FreeBooks (void); 172 173 // the interpolating spline has valu 174 typedef struct { 175 int Nknots; 176 opihi_flt *xk; 177 opihi_flt *yk; 178 opihi_flt *y2; 179 char *name; 180 } Spline; 181 182 /* in SplineOps.c */ 183 void InitSplines (); 184 void FreeSplines (); 185 void InitSpline (Spline *spline, char *name, int Nknots); 186 void FreeSpline (Spline *spline); 187 Spline *GetSpline (int where); 188 Spline *FindSpline (char *name); 189 Spline *CreateSpline (char *name, int Nknots); 190 int DeleteSpline (Spline *spline); 191 void ListSplines (); 170 192 171 193 /* hermitian functions */
Note:
See TracChangeset
for help on using the changeset viewer.
