369 |
|
e *= atof(cp); |
370 |
|
} |
371 |
|
if (p != NULL) { /* relative setting */ |
372 |
< |
if (intens(p->v) <= FTINY) { |
372 |
> |
if (bright(p->v) <= FTINY) { |
373 |
|
error(COMMAND, "cannot normalize to zero"); |
374 |
|
return; |
375 |
|
} |
376 |
< |
e *= 0.5 / intens(p->v); |
376 |
> |
e *= 0.5 / bright(p->v); |
377 |
|
} |
378 |
|
if (e <= FTINY || fabs(1.0 - e) <= FTINY) |
379 |
|
return; |
404 |
|
char buf[128]; |
405 |
|
|
406 |
|
if (s[0] == '\0') { |
407 |
< |
(*dev->comout)("aa ab ad ar as av dj dt lr lw sd sp: "); |
407 |
> |
(*dev->comout)("aa ab ad ar as av dj dt lr lw sp st: "); |
408 |
|
(*dev->comin)(buf); |
409 |
|
s = buf; |
410 |
|
} |
555 |
|
psample = i0; |
556 |
|
pdepth = 0; |
557 |
|
break; |
558 |
< |
case 'd': /* difference */ |
558 |
> |
case 't': /* threshold */ |
559 |
|
if (sscanf(s+2, "%lf", &d0) != 1) { |
560 |
< |
sprintf(buf, "sample difference (%.6g): ", |
560 |
> |
sprintf(buf, "sample threshold (%.6g): ", |
561 |
|
maxdiff); |
562 |
|
(*dev->comout)(buf); |
563 |
|
(*dev->comin)(buf); |