| 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 |
|
*/ |
| 5 |
+ |
#ifndef _RAD_GLARE_H_ |
| 6 |
+ |
#define _RAD_GLARE_H_ |
| 7 |
|
|
| 8 |
|
#include "standard.h" |
| 9 |
+ |
#include "paths.h" |
| 10 |
|
#include "view.h" |
| 11 |
|
#include "color.h" |
| 12 |
|
#include "setscan.h" |
| 13 |
|
|
| 14 |
+ |
#ifdef __cplusplus |
| 15 |
+ |
extern "C" { |
| 16 |
+ |
#endif |
| 17 |
+ |
|
| 18 |
|
#define GLAREBR 7.0 /* glare source is this * avg. lum. */ |
| 19 |
|
|
| 20 |
|
#define SAMPDENS 75 /* default samples per unit in image */ |
| 28 |
|
#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) |
| 29 |
|
|
| 30 |
|
#define SABIG .025 /* solid angle of splittable source */ |
| 31 |
< |
#define LCORR .8 /* linearity of splittable source */ |
| 31 |
> |
#define LCORR .12 /* linearity of splittable source */ |
| 32 |
|
|
| 33 |
|
extern VIEW ourview; /* our view */ |
| 34 |
|
extern VIEW pictview; /* picture view */ |
| 74 |
|
struct source *next; /* next source in list */ |
| 75 |
|
} *donelist; /* finished sources */ |
| 76 |
|
|
| 73 |
– |
extern double getviewpix(); |
| 74 |
– |
extern double pixsize(); |
| 77 |
|
|
| 78 |
|
extern long npixinvw; /* number of samples in view */ |
| 79 |
|
extern long npixmiss; /* number of samples missing */ |
| 80 |
+ |
|
| 81 |
+ |
/* defined in findglare.c */ |
| 82 |
+ |
extern void memerr(char *s); |
| 83 |
+ |
extern int compdir(FVECT vd, int x, int y); |
| 84 |
+ |
extern double pixsize(int x, int y); |
| 85 |
+ |
/* defined in glaresrc.c */ |
| 86 |
+ |
extern void comp_thresh(void); |
| 87 |
+ |
extern void analyze(void); |
| 88 |
+ |
extern void absorb_specks(void); |
| 89 |
+ |
/* defined in glareval.c */ |
| 90 |
+ |
extern void open_pict(char *fn); |
| 91 |
+ |
extern void fork_rtrace(char *av[]); |
| 92 |
+ |
extern void close_pict(void); |
| 93 |
+ |
extern void done_rtrace(void); |
| 94 |
+ |
extern void getviewspan(int vv, float *vb); |
| 95 |
+ |
extern double getviewpix(int vh, int vv); |
| 96 |
+ |
|
| 97 |
+ |
#ifdef __cplusplus |
| 98 |
+ |
} |
| 99 |
+ |
#endif |
| 100 |
+ |
#endif /* _RAD_GLARE_H_ */ |
| 101 |
+ |
|