Mercurial > hg > wm
comparison Fotopoulos/test-pv.c @ 13:cbecc570129d
cleanup warnings
| author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
|---|---|
| date | Mon, 30 Jun 2008 15:43:16 +0200 |
| parents | be303a3f5ea8 |
| children | 71dd4b96221b |
comparison
equal
deleted
inserted
replaced
| 12:6f5fea21a43c | 13:cbecc570129d |
|---|---|
| 18 #include <string.h> | 18 #include <string.h> |
| 19 #include <math.h> | 19 #include <math.h> |
| 20 #include <float.h> | 20 #include <float.h> |
| 21 #include <getopt.h> | 21 #include <getopt.h> |
| 22 #include "common.h" | 22 #include "common.h" |
| 23 #include "pgm.h" | |
| 23 | 24 |
| 24 double cu[1024]; | 25 double cu[1024]; |
| 25 double cv[1024]; | 26 double cv[1024]; |
| 26 int height, width; | 27 int height, width; |
| 27 | 28 |
| 29 { | 30 { |
| 30 int row, col, count; | 31 int row, col, count; |
| 31 long int elem, L, M, temp, seed, i; | 32 long int elem, L, M, temp, seed, i; |
| 32 double a; | 33 double a; |
| 33 double z; | 34 double z; |
| 34 FILE *f; | |
| 35 M = start_coeff; | 35 M = start_coeff; |
| 36 L = wm_length; | 36 L = wm_length; |
| 37 a = wm_alpha; | 37 a = wm_alpha; |
| 38 for (i = 1; i <= 1000; i++) { | 38 for (i = 1; i <= 1000; i++) { |
| 39 seed = i; | 39 seed = i; |
| 122 fct2d(image_f, N, N); | 122 fct2d(image_f, N, N); |
| 123 read_watermark(image_f, N, coeff_start, wm_length, wm_alpha); | 123 read_watermark(image_f, N, coeff_start, wm_length, wm_alpha); |
| 124 fclose(in); | 124 fclose(in); |
| 125 freematrix(image_i, height); | 125 freematrix(image_i, height); |
| 126 free(image_f); | 126 free(image_f); |
| 127 | |
| 128 exit(EXIT_SUCCESS); | |
| 127 } | 129 } |
