.OUTPUT FILE: PIC002
[Enter name for the output image. Can not be same disk
image as input.]
.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.)+[x]+[y])
4+ABS((P1-2.)/2.)
P1**3+P1+EXP((P1-2.)/2.)
NOTES
FI [min],[max] ; 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-[min]) / ([max]-[min])