13 |
|
|
14 |
|
#define GLAREBR 7.0 /* glare source is this * avg. lum. */ |
15 |
|
|
16 |
< |
#define SAMPDENS 50 /* default samples per unit in image */ |
16 |
> |
#define SAMPDENS 75 /* default samples per unit in image */ |
17 |
|
#define TSAMPSTEP 10 /* sample step to compute threshold */ |
18 |
|
|
19 |
|
#define SEPS 1 /* sources this close ==> contig. */ |
23 |
|
|
24 |
|
#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) |
25 |
|
|
26 |
+ |
#define SABIG .025 /* solid angle of splittable source */ |
27 |
+ |
#define LCORR .12 /* linearity of splittable source */ |
28 |
+ |
|
29 |
|
extern VIEW ourview; /* our view */ |
30 |
|
extern VIEW pictview; /* picture view */ |
31 |
|
extern VIEW leftview, rightview; /* leftmost and rightmost views */ |
43 |
|
|
44 |
|
#define nglardirs (2*nglarangs+1) |
45 |
|
#define vsize (sampdens-1) |
46 |
< |
#define hscale(v) sqrt(1.-(double)((v)*(v)/(sampdens*sampdens))) |
47 |
< |
#define hlim(v) (int)(maxtheta*sampdens*hscale(v)) |
48 |
< |
#define h_theta(h,v) (-(h)/(sampdens*hscale(v))) |
46 |
> |
#define hscale(v) sqrt((double)(sampdens*sampdens - (v)*(v))) |
47 |
> |
#define hlim(v) (int)(maxtheta*hscale(v)) |
48 |
> |
#define h_theta(h,v) (-(h)/hscale(v)) |
49 |
|
|
50 |
|
extern struct illum { |
51 |
|
float theta; /* glare direction */ |