IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2012, 2:47:52 PM (14 years ago)
Author:
eugene
Message:

adding functions for native spline

Location:
branches/eam_branches/ipp-20120905/Ohana/src/opihi
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data/Makefile

    r34524 r34525  
    114114$(SRC)/shift.$(ARCH).o          \
    115115$(SRC)/sort.$(ARCH).o           \
     116$(SRC)/spline.$(ARCH).o         \
     117$(SRC)/spline_commands.$(ARCH).o \
    116118$(SRC)/imspline_apply.$(ARCH).o \
    117119$(SRC)/imspline_construct.$(ARCH).o \
  • branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.data/init.c

    r34524 r34525  
    102102int shift            PROTO((int, char **));
    103103int sort_vectors     PROTO((int, char **));
     104int spline_command   PROTO((int, char **));
    104105int imspline_apply   PROTO((int, char **));
    105106int imspline_construct PROTO((int, char **));
     
    254255  {1, "shift",        shift,            "shift data in an image"},
    255256  {1, "sort",         sort_vectors,     "sort list of vectors"},
     257  {1, "spline",       spline_command,   "shift data in an image"},
    256258  {1, "imspline.apply", imspline_apply, "apply spline fit to generate an image"},
    257259  {1, "imspline.const", imspline_construct, "create spline 2nd deriv. terms"},
  • branches/eam_branches/ipp-20120905/Ohana/src/opihi/include/data.h

    r31636 r34525  
    8484
    8585/* 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);
     86void spline_construct_flt (float *x, float *y, int N, float *y2);
     87float spline_apply_flt (float *x, float *y, float *y2, int N, float X);
     88void spline_construct_dbl (opihi_flt *x, opihi_flt *y, int N, opihi_flt *y2);
     89opihi_flt spline_apply_dbl (opihi_flt *x, opihi_flt *y, opihi_flt *y2, int N, opihi_flt X);
    8890
    8991/* in svdcmp.c */
     
    168170void FreeQueues (void);
    169171void FreeBooks (void);
     172
     173// the interpolating spline has valu
     174typedef 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 */
     183void InitSplines ();
     184void FreeSplines ();
     185void InitSpline (Spline *spline, char *name, int Nknots);
     186void FreeSpline (Spline *spline);
     187Spline *GetSpline (int where);
     188Spline *FindSpline (char *name);
     189Spline *CreateSpline (char *name, int Nknots);
     190int DeleteSpline (Spline *spline);
     191void ListSplines ();
    170192
    171193/* hermitian functions */
Note: See TracChangeset for help on using the changeset viewer.