.OUTPUT FILE: PIC002
[Enter name for the output image.]
.FORMULA: P2=: P1+0.5
[Enter formula to be used to compute the output image
(referred to by P2) from the input image (P1). Formula
can be any valid math expression with many variable
registers.
Examples of accepted formulae:
(P1-2.)/2.+SIN(P1+2)
(P1/512.)+0.
EXP(LOG((P1/512.)+0.) +X22 + X23)
4+ABS((P1-2.)/2.)
P1**3+P1+EXP((P1-2.)/2.)
NOTES
FI X21,X22 ; file info. operation
oldfilename ; input file
8,7 ; min and max location in header
;
AR ; arithmetic operation
oldfilename ; input file
newfile ; output file
255 * (P1-X21) / (X22-X21)
3. Can handle a whole stack now (Sept. 02).
4. We have reports of this operation giving incorrect
results on Intel based MacIntosh computers (Sept. 07)
© Copyright Notice / Enquiries: spider@wadsworth.org