6 |
|
* Common data structures for glare source finding routines |
7 |
|
*/ |
8 |
|
|
9 |
+ |
#define DEBUG 1 |
10 |
+ |
|
11 |
|
#include "standard.h" |
12 |
|
#include "view.h" |
13 |
|
#include "color.h" |
19 |
|
#define TSAMPSTEP 10 /* sample step to compute threshold */ |
20 |
|
|
21 |
|
#define SEPS 2 /* sources this close ==> contig. */ |
22 |
+ |
|
23 |
+ |
#define SAMIN .005 /* minimum solid angle for source */ |
24 |
+ |
#define MAXBUDDY (4.*sqrt(SAMIN/PI)) /* max separation for pairing */ |
25 |
+ |
|
26 |
+ |
#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) |
27 |
|
|
28 |
|
extern VIEW ourview; /* our view */ |
29 |
|
extern VIEW pictview; /* picture view */ |