--- ray/src/util/glare.h 1991/11/12 17:19:16 2.1 +++ ray/src/util/glare.h 2003/06/27 11:32:12 2.4 @@ -1,11 +1,14 @@ -/* Copyright (c) 1991 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid: $Id: glare.h,v 2.4 2003/06/27 11:32:12 schorsch Exp $ */ /* * Common data structures for glare source finding routines */ +#ifndef _RAD_GLARE_H_ +#define _RAD_GLARE_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include "standard.h" #include "view.h" #include "color.h" @@ -24,7 +27,7 @@ #define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) #define SABIG .025 /* solid angle of splittable source */ -#define LCORR .8 /* linearity of splittable source */ +#define LCORR .12 /* linearity of splittable source */ extern VIEW ourview; /* our view */ extern VIEW pictview; /* picture view */ @@ -70,8 +73,16 @@ extern struct source { struct source *next; /* next source in list */ } *donelist; /* finished sources */ -extern double getviewpix(); -extern double pixsize(); +extern double getviewpix(int vh, int vv); +extern double pixsize(int x, int y); extern long npixinvw; /* number of samples in view */ extern long npixmiss; /* number of samples missing */ + + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_GLARE_H_ */ +