6 |
|
* Common data structures for glare source finding routines |
7 |
|
*/ |
8 |
|
|
9 |
– |
#define DEBUG 1 |
10 |
– |
|
9 |
|
#include "standard.h" |
10 |
|
#include "view.h" |
11 |
|
#include "color.h" |
12 |
|
#include "setscan.h" |
13 |
|
|
14 |
< |
#define GLAREBR 10.0 /* glare source is this * avg. lum. */ |
14 |
> |
#define GLAREBR 7.0 /* glare source is this * avg. lum. */ |
15 |
|
|
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. */ |
19 |
> |
#define SEPS 1 /* sources this close ==> contig. */ |
20 |
|
|
21 |
|
#define SAMIN .005 /* minimum solid angle for source */ |
22 |
|
#define MAXBUDDY (4.*sqrt(SAMIN/PI)) /* max separation for pairing */ |
66 |
|
struct source *next; /* next source in list */ |
67 |
|
} *donelist; /* finished sources */ |
68 |
|
|
69 |
+ |
typedef struct { |
70 |
+ |
double err; /* cumulative error */ |
71 |
+ |
double prob; /* target probability */ |
72 |
+ |
} SPANERR; /* probability record for computing spans */ |
73 |
+ |
|
74 |
|
extern double getviewpix(); |
75 |
+ |
|
76 |
+ |
extern long npixinvw; /* number of samples in view */ |
77 |
+ |
extern long npixmiss; /* number of samples missing */ |