13 |
|
|
14 |
|
#define GLAREBR 10.0 /* glare source is this * avg. lum. */ |
15 |
|
|
16 |
< |
#define SAMPDENS 50 /* samples per unit in image */ |
16 |
> |
#define SAMPDENS 50 /* default samples per unit in image */ |
17 |
|
#define TSAMPSTEP 10 /* sample step to compute threshold */ |
18 |
|
|
19 |
|
#define SEPS 2 /* sources this close ==> contig. */ |
25 |
|
extern int verbose; /* verbose reporting */ |
26 |
|
extern char *progname; /* global argv[0] */ |
27 |
|
|
28 |
+ |
extern int sampdens; /* sample density */ |
29 |
|
extern ANGLE glarang[]; /* glare calculation angles */ |
30 |
|
extern int nglarangs; |
31 |
|
extern double maxtheta; /* maximum glare angle (in radians) */ |
33 |
|
extern int hlim; /* horizontal limit of central view */ |
34 |
|
|
35 |
|
#define nglardirs (2*nglarangs+1) |
36 |
< |
#define vsize SAMPDENS |
37 |
< |
#define h_theta(h) ((double)(h)/-(double)SAMPDENS) |
36 |
> |
#define vsize sampdens |
37 |
> |
#define h_theta(h) (-(double)(h)/(double)sampdens) |
38 |
|
|
39 |
|
extern struct illum { |
40 |
|
float theta; /* glare direction */ |