Mercurial > hg > wm
comparison Fotopoulos/test-hart.c @ 23:71dd4b96221b
fix some compiler warning
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
---|---|
date | Fri, 20 Dec 2024 12:53:41 +0100 |
parents | cbecc570129d |
children |
comparison
equal
deleted
inserted
replaced
22:d8551fb39a5e | 23:71dd4b96221b |
---|---|
24 | 24 |
25 void read_watermark(double **in, int N, int coeff_start, int wm_length, double wm_alpha) | 25 void read_watermark(double **in, int N, int coeff_start, int wm_length, double wm_alpha) |
26 { | 26 { |
27 int row, col, count; | 27 int row, col, count; |
28 long int elem, L, M, seed, i; | 28 long int elem, L, M, seed, i; |
29 double a; | |
30 double z; | 29 double z; |
31 M = coeff_start; | 30 M = coeff_start; |
32 L = wm_length; | 31 L = wm_length; |
33 a = wm_alpha; | |
34 for (i = 1; i <= 1000; i++) { | 32 for (i = 1; i <= 1000; i++) { |
35 seed = i; | 33 seed = i; |
36 z = 0.0; | 34 z = 0.0; |
37 count = 0; | 35 count = 0; |
38 elem = 0; | 36 elem = 0; |