vlt.image.writetif
WRITETIF - write a TIF file after scaling and converting to integer
WRITETIF(A, FILENAME, CMAP, SCALEFROM, SCALETO, BIT)
Write an 8-bit or 16-bit tiff of the image A to FILENAME, using
colormap CMAP. The image is scaled (from a min of SCALEFROM(1) and a max
of SCALEFROM(2) to a new min of SCALETO(1) and a new max of SCALETO(2)).
If SCALEFROM is empty, it is assumed to be the min and max of the data
of A. If SCALETO is empty, then the range is [0 2^(BIT)-1]
FILENAME should end in '.tif' or '.tiff'.
BIT should be 8 or 16, depending upon whether 8- or 16-bit output is desired.