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


.TH TV 1 "Ultrasonics Laboratory"
.SH NAME
tv - Extract True Values from Comtal Images
.SH SYNOPSIS
tv [if=pic.r] [of=pic.v] [n=128] [m=3]
.SH DESCRIPTION
.B Tv
finds the numerical value of a pixel pointed to by the
Comtal tracking cross.
This is needed so that features in an image can
be correlated with the original (floating point)
values in a picture.
.PP
The program reads the position of the 
tracking cross and based
on the size of the original image indexes
into the input file.
The program then averages the values
in a window around this point and prints
out the position and the average value.
The input file should be an n x n
array of single precision numbers.
.B Disn
(1) and 
.B display
(1) are used to convert this into 8 bit data 
and display it on the Comtal or the Grinnel.
.PP
There are several options when calling
.B tv.
The input file if specified with the
.B if
parameter.
The default input file is 
.B pic.r.
The file should be an array of single
precision numbers.
The size of the input file should be
specified with the 
.B n
parameter.
The default value is 128.
.PP
.B Tv
also can save the locations of
the interrogated pixels and their average value.
Each time the average is converted the location
of the tracking cross and the average
value in an m x m window of the input
file can be
saved in the output file.
The output file can be set from the command name
with the 
.B of=
parameter. 
Normally it is the file
.B pic.v.
This option is turned on and off with the autosave
command (a).
The size of the averaging window is set
with the
.B m
option.
Normally 
.B tv
averages over a 3 x 3 window.
.PP
.B Tv
accepts commands when running for various actions to
perform.
They are:
.TP 8

Print out the average value of the pixels 
near the tracking cross.  
The size of the neighborhood is set with the
.B m
command.
If the autosave flag (
.B a
) is turned on, this information
is also put in the output file
(see the 
.B of
argument above.)
.TP
s
Average the pixels around the tracking cross and
save the results in the output file.
This is similar to the  command
but the values are not printed on the console.
.TP
c
Print a comment in the autosave file.
Everything after the 'c' is written to the 
output file.
.TP
p
Print the current parameters of the program.
The information printed includes
the input file, the output file,
the values of 'n' and 'm' and
whether auto save is turned on or off.
.TP
g
Turn on or off a 10 x 10 grid over the image.
Graphics overlay 0 is used for the grid.
.TP
i
Open a new input file.
The file must be an array (n x n)
of single precision numbers.
.TP
a
Toggle the auto save feature.
This flag is initially off when the program starts.
.TP
n 
Set the input picture size.
The value of 'n' must be less than 512.
.TP
m
Set the window size for averaging.
The value of 'm' must be odd.
.TP
!
Call the shell to execute the command that follows
the '!'.
.TP
x
Exit the program.
.SH FILES
.TP 13
pic.r
Default input file
.TP
pic.v
Default output file
.TP
/dev/ct/tc
Comtal Tracking Cross
.SH DIAGNOSTICS
An error is printed if a file can not be opened.