1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* Common data structures for glare source finding routines |
4 |
|
*/ |
10 |
|
|
11 |
|
#define GLAREBR 7.0 /* glare source is this * avg. lum. */ |
12 |
|
|
13 |
< |
#define SAMPDENS 50 /* default samples per unit in image */ |
13 |
> |
#define SAMPDENS 75 /* default samples per unit in image */ |
14 |
|
#define TSAMPSTEP 10 /* sample step to compute threshold */ |
15 |
|
|
16 |
|
#define SEPS 1 /* sources this close ==> contig. */ |
20 |
|
|
21 |
|
#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) |
22 |
|
|
23 |
+ |
#define SABIG .025 /* solid angle of splittable source */ |
24 |
+ |
#define LCORR .12 /* linearity of splittable source */ |
25 |
+ |
|
26 |
|
extern VIEW ourview; /* our view */ |
27 |
|
extern VIEW pictview; /* picture view */ |
28 |
|
extern VIEW leftview, rightview; /* leftmost and rightmost views */ |
40 |
|
|
41 |
|
#define nglardirs (2*nglarangs+1) |
42 |
|
#define vsize (sampdens-1) |
43 |
< |
#define hscale(v) sqrt(1.-(double)((v)*(v)/(sampdens*sampdens))) |
44 |
< |
#define hlim(v) (int)(maxtheta*sampdens*hscale(v)) |
45 |
< |
#define h_theta(h,v) (-(h)/(sampdens*hscale(v))) |
43 |
> |
#define hscale(v) sqrt((double)(sampdens*sampdens - (v)*(v))) |
44 |
> |
#define hlim(v) (int)(maxtheta*hscale(v)) |
45 |
> |
#define h_theta(h,v) (-(h)/hscale(v)) |
46 |
|
|
47 |
|
extern struct illum { |
48 |
|
float theta; /* glare direction */ |