| 31 |
|
#define Lb1(Bw) exp(Bw) /* first derivative of Lb(Bw) */ |
| 32 |
|
|
| 33 |
|
/* Flags of what to do */ |
| 34 |
< |
#define DO_ACUITY 01 |
| 34 |
> |
#define DO_ACUITY 01 |
| 35 |
|
#define DO_VEIL 02 |
| 36 |
|
#define DO_HSENS 04 |
| 37 |
|
#define DO_COLOR 010 |
| 67 |
|
extern double bwmin, bwmax; /* histogram limits */ |
| 68 |
|
extern double bwavg; /* mean brightness */ |
| 69 |
|
|
| 70 |
– |
#define lwhc(L) bwhc(Bl(L)) |
| 70 |
|
#define bwhc(B) bwhist[(int)(HISTRES*((B)-bwmin)/(bwmax-bwmin))] |
| 71 |
|
|
| 72 |
|
extern RGBPRIMP inprims; /* input primaries */ |
| 81 |
|
extern RESOLU inpres; /* input picture resolution */ |
| 82 |
|
|
| 83 |
|
extern char *mbcalfile; /* macbethcal mapping file */ |
| 85 |
– |
|
| 86 |
– |
struct mbc { /* data structure for macbethcal conditioning */ |
| 87 |
– |
float xa[3][6], ya[3][6]; |
| 88 |
– |
COLORMAT cmat; |
| 89 |
– |
}; |
| 84 |
|
|
| 85 |
|
extern double hacuity(); /* human acuity func. (cycles/deg.) */ |
| 86 |
|
extern double htcontrs(); /* human contrast sens. func. */ |