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" |
48 |
|
float lcos, lsin; /* cosine and sine to left view */ |
49 |
|
float rcos, rsin; /* cosine and sine to right view */ |
50 |
|
double sum; /* sum of indirect luminances */ |
51 |
< |
int n; /* number of values in sum */ |
51 |
> |
double n; /* number of values in sum */ |
52 |
|
} *indirect; /* array of indirect illuminances */ |
53 |
|
|
54 |
|
struct srcspan { |
67 |
|
} *donelist; /* finished sources */ |
68 |
|
|
69 |
|
extern double getviewpix(); |
70 |
+ |
|
71 |
+ |
extern long npixinvw; /* number of samples in view */ |
72 |
+ |
extern long npixmiss; /* number of samples missing */ |