www.pudn.com > 医学算法.rar > sim


.TH SIM 1 "Ultrasonics Laboratory"
.SH NAME
sim - Simulate Ellipse Field Images
.SH SYNOPSIS
sim [options...]
.SH DESCRIPTION
.B Sim
is used to generate an image of
a field of superimposed ellipses.
See
.B gen(1)
for a description of the ellipse data.
.PP
Parameters in the image construction can
be set from the command line.
The parameters can be set by listing the
variable name, an
equals sign and then the new
value.
The new value is either a number or
a file name depending on the parameter.
They are listed below with their
default values listed.
.TP 13
n=64
is the dimension of the image.
The maximum value for n is 512.
.TP 
m=10
is the maximum number of ellipses to read from the input
file.
The maximum value is 10.
All ellipses are read if this parameter is not specified.
.TP
q=all
specific quadrant to reconstruct.
If this parameter is not specified then
all quadrants are calculated.
To only see one quadrant of the image
then the parameter all should be
replaced with the desired parameter.
The quadrants are labeled with the following numbers
.RS
.TP 4
1)
Upper Right (+x, +y)
.TP
2)
Upper Left (-x, +y)
.TP
3)
Lower Left (-x, -y)
.TP
4)
Lower Right (+x, -y)
.PP
.RE
.TP 13
theta=0
rotates the final image by the specified angle.
This parameter is in degrees.
.TP
gx=-1
x coordinate of the upper left hand corner
of the display grid.
This parameter is automatically set if the 
.B q=
option is used.
.TP
gy=1
y coordinate of the upper left hand corner
of the display grid.
This parameter is automatically set if the 
.B q=
option is used.
.TP
gs=2
size of the image.
With the default values of 
.B gx
and 
.B gy
this gives an image from x=+-1
and y=+-1.
.TP
y=0
calculate the image only along
one line indicated by the parameter.
Setting this variable sets the
.B -l 
flag (see below.)
.TP
if=gen.d
input file.
All of the ellipse data is read from this file.
See the program
.B gen(1)
for the format of this data.
.TP
of=pic.r
output file.
This file will contain an 
array of n x n single precision
floating point numbers.
.TP
lf=line
line output file.
If this parameter is used
then the
.B -l 
flag (see below.)
is also set.
.PP
There are several flags that can be set 
from the command line.
Both of these flags are initially turned off.
.TP
-l
only calculate the image for one horizontal line.
The position of the line is indicated by
the 
.B y
parameter.
.TP
-p
do not print the program parameters.
.SH FILES
.TP 13
gen.d
default input file
.TP
pic.r
default output file for n x n image.
.TP
line
default output file for single line.
.SH SEE ALSO
.B gen(1)
.SH DIAGNOSTICS
Error messages are printed if files can not be opened
or if the parameters are out of bounds.