------------------------------------------------
 The SessionsTools -> Calculate Visual Field Sign
 sets up two Fourier-analyzed data sets in order
 to calculate the visual field sign (mirror vs.
 non-mirror image representation)
------------------------------------------------
This panel calculates the visual field sign using
two Fourier-analyzed data sets--one for in which
eccentricity was mapping and the other in which
polar angle was mapped.

The gradients in retinal eccentricity and polar
angle with respect to cortical x and y are
computed.  These two gradients are vector
quantities whose norms have units deg/mm (the
reciprocal of magnification factor). They are
computed by fitting a plane to the r (or theta)
values of the current vertex and its immediate
neighbors using least squares.  The clockwise
angle between them (the fieldsign angle) is then
measured to determine whether the local
representation of the visual field at that vertex
was non-mirror-image (angle near Pi/2) or
mirror-image (angle near -Pi/2). Finally, the
intensity of the field sign coloring was adjusted
using the average significance from the
eccentricity and polar angle data sets.

Input Files

There are eight Fourier-analyzed, painted
input files for this operation:

 $FUNCTIONALS_DIR/sess1/image/eccen/ecc_r-rh.w
 $FUNCTIONALS_DIR/sess1/image/eccen/ecc_i-rh.w
 $FUNCTIONALS_DIR/sess1/image/polar/pol_r-rh.w
 $FUNCTIONALS_DIR/sess1/image/polar/pol_i-rh.w

 $FUNCTIONALS_DIR/sess1/image/eccen/ecc_r-lh.w
 $FUNCTIONALS_DIR/sess1/image/eccen/ecc_i-lh.w
 $FUNCTIONALS_DIR/sess1/image/polar/pol_r-lh.w
 $FUNCTIONALS_DIR/sess1/image/polar/pol_i-lh.w

Eccentricity and Polar Angle Scan comboboxes

Select an eccentricity functional scan in the
"Scan Directory" combo box.  A *.w file must
appear in the "Vertex List Prefix" combo box
immediately to the right.  Do the same for a
polar angle functional scan.

Smoothing Steps

Since the fieldsign calculation involves
gradients (derivatives), the data needs to be
heavily smoothed to reduce noise (default: 50
steps)

Action Button--FIELDSIGN

This generates four files, two for each
hemisphere.  The fieldsign itself is stored in
{rh,lh}.fs while the fieldsign significance mask
is in {rh,lh}.fm.

 $FUNCTIONALS_DIR/sess1/image/fs/rh.fs
 $FUNCTIONALS_DIR/sess1/image/fs/rh.fm

 $FUNCTIONALS_DIR/sess1/image/fs/lh.fs
 $FUNCTIONALS_DIR/sess1/image/fs/lh.fm

