www.pudn.com > 医学算法.rar > disn
.TH DISN 1 "Ultrasonics Laboratory" .SH NAME disn - Quantize an N x N picture .SH SYNOPSIS disn [if=file] [n=N] [-r] [min max] .SH DESCRIPTION This program quantizes an N x N single precision floating point picture into eight bit bytes suitable for displaying on either the Grinnel or the Comtal. The resulting picture is placed into the file .B pic. Normally the picture is quantized so that the smallest value in the picture is displayed as black and the highest as white. All other values fall linearly between. This can be changed by listing the desired minimum and maximum. .PP The option are: .TP 13 if=file is the input file for the picture. The file should be organized as an N x N array of single precision floating point numbers. The default input file is .B pic.r. .TP n=N specifies the size of the picture. Both the input and the output files will be the same size. .TP -r reverses the sense of the picture. After quantizing each byte of the picture is subtracted from 255. .TP [min max] correspond to black and white in the final picture. All pixels that are below the minimum are set to black and all pixels above the maximum are set to white. .SH FILES .TP 13 pic.r is the default input file. .TP pic is the output file. .SH DIAGNOSTICS An error message is output if either the input or the output files can't be opened. .SH BUGS Can't send output to an arbitrary file.