Mercurial > hg > wm
comparison Fotopoulos-dir/common.h @ 24:9f20bce6184e v0.7
move directories, support netpbm 11
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
---|---|
date | Fri, 20 Dec 2024 13:08:59 +0100 |
parents | Fotopoulos/common.h@be303a3f5ea8 |
children |
comparison
equal
deleted
inserted
replaced
23:71dd4b96221b | 24:9f20bce6184e |
---|---|
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(); |