tomwalters@0
|
1 .TH NAPTOSAI 1 "14 September 1993"
|
tomwalters@0
|
2
|
tomwalters@0
|
3 .SH NAME
|
tomwalters@0
|
4 naptosai \- NAP to SAI format conversion.
|
tomwalters@0
|
5
|
tomwalters@0
|
6 .SH SYNTAX
|
tomwalters@0
|
7 naptosai [arguments] [file]
|
tomwalters@0
|
8
|
tomwalters@0
|
9 .SH DESCRIPTION
|
tomwalters@0
|
10
|
tomwalters@0
|
11 The program expects to read an AIM header, and interprets input as one large
|
tomwalters@0
|
12 frame in column-wise format (eg output from genbmm, gennap, etc.), to be
|
tomwalters@0
|
13 divided into input frames according to the given options.
|
tomwalters@0
|
14 Each frame is output in row-wise format (eg as if output from gensai).
|
tomwalters@0
|
15
|
tomwalters@0
|
16 The options "start" and "length" specify the input file.
|
tomwalters@0
|
17 The special option value length=max specifies all the input file from
|
tomwalters@0
|
18 the given start to its end.
|
tomwalters@0
|
19 The options "width" and "frstep" specify the framing.
|
tomwalters@0
|
20 The width option is the width of each frame and the frstep option is the
|
tomwalters@0
|
21 frameshift between successive frames in the input file.
|
tomwalters@0
|
22 The special option value width=max specifies the input framewidth as equal
|
tomwalters@0
|
23 to the given input file length, (and if this is also "max", then the
|
tomwalters@0
|
24 input framewidth is the remainder of the input file).
|
tomwalters@0
|
25 If frstep=0, then the output is one frame of given width from the given start
|
tomwalters@0
|
26 of the input file. For example, use naptosai with width=max and frstep=0
|
tomwalters@0
|
27 to produce one SAI frame the same size as the input NAP.
|
tomwalters@0
|
28
|
tomwalters@0
|
29 A new header is constructed, and most options in the input header are copied
|
tomwalters@0
|
30 to the output header. Some parts of the header are changed for the output
|
tomwalters@0
|
31 format: (frames, frameshift, framewidth, frameheight, framebytes).
|
tomwalters@0
|
32
|
tomwalters@0
|
33
|
tomwalters@0
|
34 .SH EXAMPLES
|
tomwalters@0
|
35
|
tomwalters@0
|
36 .nf
|
tomwalters@0
|
37 1. To convert a nap or a bmm output to a single frame of sai output:
|
tomwalters@0
|
38
|
tomwalters@0
|
39 gennap length=64 output=stdout file | naptosai width=32ms frstep=0 > file.sai
|
tomwalters@0
|
40 gensai top=1000 useprevious=on file
|
tomwalters@0
|
41
|
tomwalters@0
|
42 genbmm output=stdout file | naptosai > file.sai
|
tomwalters@0
|
43 gensai bottom=-100 useprevious=on file
|
tomwalters@0
|
44
|
tomwalters@0
|
45
|
tomwalters@0
|
46 This uses special case of zero frstep to generate one frame of output with
|
tomwalters@0
|
47 the given width. The default width is the given length, and the default
|
tomwalters@0
|
48 length is the remainder of the input file. If the width=length, then the
|
tomwalters@0
|
49 frstep is zero by default, and therefore the default process, (ie with no
|
tomwalters@0
|
50 arguments), converts the whole of the input to a single SAI frame.
|
tomwalters@0
|
51
|
tomwalters@0
|
52 Note, certain display parameters have different default values for different
|
tomwalters@0
|
53 applications. The SAI display parameters should be set to the appropriate
|
tomwalters@0
|
54 values, in order to plot the SAI on the same scale. For example:
|
tomwalters@0
|
55
|
tomwalters@0
|
56 When the source application is NAP, set gensai top=1000
|
tomwalters@0
|
57 When the source application is BMM, set gensai bottom=-100
|
tomwalters@0
|
58
|
tomwalters@0
|
59 2. To convert a nap output to multiple frames of sai output:
|
tomwalters@0
|
60
|
tomwalters@0
|
61 gennap length=40 output=stdout file | naptosai width=32ms frstep=0.2ms > file.sai
|
tomwalters@0
|
62 gensai top=1000 useprevious=on file
|
tomwalters@0
|
63
|
tomwalters@0
|
64 The sai output can be plotted as a spiral, but it is best to set the
|
tomwalters@0
|
65 display parameters as follows:
|
tomwalters@0
|
66
|
tomwalters@0
|
67 gennap length=40 output=stdout dencf=1 width=500 height=500 file |
|
tomwalters@0
|
68 naptosai width=32ms frstep=0.2ms > file.sai
|
tomwalters@0
|
69 genspl useprevious=on pensize=2 file
|
tomwalters@0
|
70
|
tomwalters@0
|
71
|
tomwalters@0
|
72
|
tomwalters@0
|
73 3. To convert a nap output to a sai format bitmap, to display an animated
|
tomwalters@0
|
74 stream:
|
tomwalters@0
|
75
|
tomwalters@0
|
76 gennap length=40 output=stdout file | naptosai width=32ms frstep=0.2ms > file.sai
|
tomwalters@0
|
77 gensai top=1000 useprevious=on bitmap=on file
|
tomwalters@0
|
78 review file
|
tomwalters@0
|
79
|
tomwalters@0
|
80 The same can be done for the spiral display:
|
tomwalters@0
|
81
|
tomwalters@0
|
82 gennap length=40 output=stdout dencf=1 width=500 height=500 file |
|
tomwalters@0
|
83 naptosai width=32ms frstep=0.2ms > file.sai
|
tomwalters@0
|
84 genspl useprevious=on pensize=2 bitmap=on file
|
tomwalters@0
|
85 review file
|
tomwalters@0
|
86
|
tomwalters@0
|
87 The plots show the nap moving though 8ms (40-32), in steps of 0.2ms,
|
tomwalters@0
|
88 first in rectangular display, then in spiral-mapped display.
|
tomwalters@0
|
89 .fi
|
tomwalters@0
|
90
|
tomwalters@0
|
91 .SH BUGS
|
tomwalters@0
|
92 None yet.
|
tomwalters@0
|
93 .SH COPYRIGHT
|
tomwalters@0
|
94 .LP
|
tomwalters@0
|
95 Copyright (c) Applied Psychology Unit, Medical Research Council, 1995
|
tomwalters@0
|
96 .LP
|
tomwalters@0
|
97 Permission to use, copy, modify, and distribute this software without fee
|
tomwalters@0
|
98 is hereby granted for research purposes, provided that this copyright
|
tomwalters@0
|
99 notice appears in all copies and in all supporting documentation, and that
|
tomwalters@0
|
100 the software is not redistributed for any fee (except for a nominal
|
tomwalters@0
|
101 shipping charge). Anyone wanting to incorporate all or part of this
|
tomwalters@0
|
102 software in a commercial product must obtain a license from the Medical
|
tomwalters@0
|
103 Research Council.
|
tomwalters@0
|
104 .LP
|
tomwalters@0
|
105 The MRC makes no representations about the suitability of this
|
tomwalters@0
|
106 software for any purpose. It is provided "as is" without express or
|
tomwalters@0
|
107 implied warranty.
|
tomwalters@0
|
108 .LP
|
tomwalters@0
|
109 THE MRC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
tomwalters@0
|
110 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
tomwalters@0
|
111 THE A.P.U. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
|
tomwalters@0
|
112 OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
tomwalters@0
|
113 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
tomwalters@0
|
114 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
tomwalters@0
|
115 SOFTWARE.
|
tomwalters@0
|
116
|