(file) Return to fresize.h CVS log (file) (dir) Up to [Development] / JSOC / proj / sharp / apps

File: [Development] / JSOC / proj / sharp / apps / fresize.h (download)
Revision: 1.1, Thu Aug 23 07:38:33 2012 UTC (11 years, 1 month ago) by xudong
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, HEAD
Update functioning code sharp.c per Monica's request

struct fresize_struct {

  int method;

  int nsub;

  int hwidth;

  float *ker,*kerx,*kery;

};



int init_fresize_sample(

  struct fresize_struct *pars,

  int nsub // Distance between sampled points

);



int init_fresize_bin(

  struct fresize_struct *pars,

  int nsub // Binsize

);



int init_fresize_boxcar(

  struct fresize_struct *pars,

  int hwidth, // Half width of boxcar. Full is 2*hwidth+1.

  int nsub // Distance between sampled points

);



int init_fresize_gaussian(

  struct fresize_struct *pars,

  float sigma, // Shape is exp(-(d/sigma)^2/2)

  int hwidth, // Half (truncation) width of kernel. Full is 2*hwidth+1.

  int nsub // Distance between sampled points

);



int free_fresize(

  struct fresize_struct *pars

);



int fresize(

  struct fresize_struct *pars, // Must have been initialized by init_fresize_XXX

  float *image_in,

  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 nxout, // Size of xin, yin and image_out

  int nyout, // Size of xin, yin and image_out

  int nleadout, // Leading dimension. nlead>=nx

  int xoff, // Offset in x direction

  int yoff, // Offset in y direction

  float fillval // Value to use if outside area

);



int fsample(

  float *image_in,

  float *image_out,

  int nxin,

  int nyin,

  int nleadin,

  int nxout,

  int nyout,

  int nleadout,

  int nsub,

  int xoff,

  int yoff,

  float fillval

);



int fbin(

  float *image_in,

  float *image_out,

  int nxin,

  int nyin,

  int nleadin,

  int nxout,

  int nyout,

  int nleadout,

  int nsub,

  int xoff,

  int yoff,

  float fillval

);


Karen Tian
Powered by
ViewCVS 0.9.4