(file) Return to finterpolate.h CVS log (file) (dir) Up to [Development] / JSOC / proj / libs / interpolate

File: [Development] / JSOC / proj / libs / interpolate / finterpolate.h (download)
Revision: 1.3, Tue Dec 6 18:11:03 2011 UTC (11 years, 5 months ago) by arta
Branch: MAIN
CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1, Ver_9-0, Ver_8-8, Ver_8-7, Ver_8-6, Ver_8-5, Ver_8-4, Ver_8-3, Ver_8-2, Ver_8-12, Ver_8-11, Ver_8-10, Ver_8-1, Ver_8-0, Ver_7-1, Ver_7-0, Ver_6-4, Ver_6-3, Ver_6-2, Ver_6-1, HEAD
Changes since 1.2: +6 -4 lines
Pass the path to the JSOC tree to the interpolation code - instead of using a hard-coded relative path. The interpolation code needs to locate data files in a directory that is relative to the interpolation source files.

struct fint_struct {
  int method;
  int order;
  int nsub;
  float fover;
  float *kersx;
  int nshifts;
  int shift0;
  int edgemode;
  float extrapolate;
  char *filename;
};

int init_finterpolate_wiener_old(
  struct fint_struct *pars,
  int order,
  int edgemode, // 0 to go as far as you can with symmetric kernel
                // Otherwise go further (as set by extrapolate)
  float extrapolate, // How far to extrapolate
  int minorder, // Minimum order to use when approaching edge or beyond
  int nconst, // Number of polynomial constraints
              // 0 None, 1 for norm, 2 for linear preserved, etc.
  const char *path // to data files read by this function.
);

int init_finterpolate_wiener(
  struct fint_struct *pars,
  int order,
  int edgemode, // 0 to go as far as you can with symmetric kernel
                // Otherwise go further (as set by extrapolate)
  float extrapolate, // How far to extrapolate
  int minorder, // Minimum order to use when approaching edge or beyond
  int nconst, // Number of polynomial constraints
             // 0 None, 1 for norm, 2 for linear preserved, etc.
  int cortable, // Which of the hardcoded tables to use.
                // 0 To use table pointed to by filenamep
  char **filenamep, // Pointer to name of file to read covariance from.
                    // Set to actual file used if cortable>0
  const char *path // to data files read by this function.
);

int init_finterpolate_linear(
  struct fint_struct *pars,
  float extrapolate // How far to extrapolate
);

int init_finterpolate_cubic_conv(
  struct fint_struct *pars,
  int edgemode, // 0 to go as far as you can with symmetric kernel
                // Otherwise go further (as set by extrapolate)
  float extrapolate // How far to extrapolate
);

int free_finterpolate(
  struct fint_struct *pars
);

int finterpolate(
  struct fint_struct *pars, // Must have been initialized by init_finterpolate
  float *image_in,
  float *xin,
  float *yin,
  float *image_out,
  int nxin, // Size of input image
  int nyin, // Size of input image
  int nleadin, // Leading dimension of input image. nleadin>=nxin
  int nx, // Size of xin, yin and image_out
  int ny, // Size of xin, yin and image_out
  int nlead, // Leading dimension. nlead>=nx
  float fillval // Value to use if outside area
);

char *finterpolate_version(); // Returns CVS version of finterpolate.c



Karen Tian
Powered by
ViewCVS 0.9.4