annotate Fotopoulos/common.h @ 22:d8551fb39a5e default tip

Added tag v0.6 for changeset 1c4ccd635a68
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Sat, 28 Jan 2023 23:57:51 +0100
parents be303a3f5ea8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 #define PI 3.1415926535897932
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 #define INVROOT2 0.7071067814
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 void open_image(FILE *in, int *width, int *height);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5 void load_image(int **im, FILE *in, int width, int height);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 void save_image(int **im, FILE *out, int width, int height);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 int ** imatrix(int nrows, int ncols);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8 void freematrix(int **I, int rows);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 float ran0(long int *idum);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 float gasdev(long int *idum);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 void put_image_from_int_2_double(int **i, double *f, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 void put_image_from_double_2_int(double *f, int **i, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 void fct2d(double f[], int nrows, int ncols);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14 void ifct2d(double f[], int nrows, int ncols);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15 void matmul(double **a, double **b, double **r, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 void hartley(double **in, double **out, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 double ** dmatrix(int nrows, int ncols);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18 void freematrix_d(double **I, int rows);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19 void hartley(double **in, double **out, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 void matrix_i2d(int **i, double **d, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 void matrix_d2i(double **d, int **i, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22 void put_matrix_2_vector(double **i, double *f, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23 void put_vector_2_matrix(double *f, double **i, int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24 double * dvector(long int N);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26 void wm_init();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27 void wm_init1();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28 void wm_init2();

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