view Fotopoulos/common.h @ 15:ad1d224896c5

fix scanf() warning
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Mon, 30 Jun 2008 20:59:01 +0200
parents be303a3f5ea8
children
line wrap: on
line source

#define PI      3.1415926535897932
#define INVROOT2 0.7071067814

void open_image(FILE *in, int *width, int *height);
void load_image(int **im, FILE *in, int width, int height);
void save_image(int **im, FILE *out, int width, int height);
int ** imatrix(int nrows, int ncols);
void freematrix(int **I, int rows);
float ran0(long int *idum);
float gasdev(long int *idum);
void put_image_from_int_2_double(int **i, double *f, int N);
void put_image_from_double_2_int(double *f, int **i, int N);
void fct2d(double f[], int nrows, int ncols);
void ifct2d(double f[], int nrows, int ncols);
void matmul(double **a, double **b, double **r, int N);
void hartley(double **in, double **out, int N);
double ** dmatrix(int nrows, int ncols);
void freematrix_d(double **I, int rows);
void hartley(double **in, double **out, int N);
void matrix_i2d(int **i, double **d, int N);
void matrix_d2i(double **d, int **i, int N);
void put_matrix_2_vector(double **i, double *f, int N);
void put_vector_2_matrix(double *f, double **i, int N);
double * dvector(long int N);

void wm_init();   
void wm_init1();   
void wm_init2(); 

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.