comparison Fotopoulos/common.h @ 0:be303a3f5ea8

import
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Sun, 12 Aug 2007 13:14:34 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:be303a3f5ea8
1 #define PI 3.1415926535897932
2 #define INVROOT2 0.7071067814
3
4 void open_image(FILE *in, int *width, int *height);
5 void load_image(int **im, FILE *in, int width, int height);
6 void save_image(int **im, FILE *out, int width, int height);
7 int ** imatrix(int nrows, int ncols);
8 void freematrix(int **I, int rows);
9 float ran0(long int *idum);
10 float gasdev(long int *idum);
11 void put_image_from_int_2_double(int **i, double *f, int N);
12 void put_image_from_double_2_int(double *f, int **i, int N);
13 void fct2d(double f[], int nrows, int ncols);
14 void ifct2d(double f[], int nrows, int ncols);
15 void matmul(double **a, double **b, double **r, int N);
16 void hartley(double **in, double **out, int N);
17 double ** dmatrix(int nrows, int ncols);
18 void freematrix_d(double **I, int rows);
19 void hartley(double **in, double **out, int N);
20 void matrix_i2d(int **i, double **d, int N);
21 void matrix_d2i(double **d, int **i, int N);
22 void put_matrix_2_vector(double **i, double *f, int N);
23 void put_vector_2_matrix(double *f, double **i, int N);
24 double * dvector(long int N);
25
26 void wm_init();
27 void wm_init1();
28 void wm_init2();

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