------------------------------------------------
 Medit -- display and edit MRI slice data
------------------------------------------------
Medit reads one or more series of images and
displays them in coronal, sagittal, horizontal,
or all 3 planes.  The images in the first (edit)
buffer can be edited and saved.  Images read into
the second buffer cannot be edited.  Edits
applied while viewing the second buffer affect
the first buffer (useful when edit buffer has
segmented white matter and second buffer has
original full T1 images).

Medit can also read in a surface and display the
intersection of the surface with the current
slice.

Viewing orientation

CORONAL button: switch to coronal view
	slider: change coronal slice
	field: enter coronal slice number
SAGITTAL button: switch to sagittal view
	slider: change sagittal slice
	field: enter sagittal slice number
HORIZONTAL button: switch to horizontal view
	slider: change horizontal slice
	field: enter horizontal slice number
all3views radiobutton:	displays all three views
              with a maximum intensity projection   

Display parameters
maximum radiobutton: maximum intensity projection  
surface radiobutton: toggle surface overlay
contrast field:	contrast
midpoint field:	midpoint of intensity range
SAGMIRROR button: Mirror volume about sagittal 
                  plane (left-right mirror) 

Read/Write
SAVE IMGS button: save images (COR files) in
		  volume specified by outim
surf field: surface for overlay
outim field: volume to save with SAVE IMGS button 
rgb field: name of rgb to save currently viewed
           slice 

Editing
MIDDLE-CLICK  draw (set intensity to 255)
RIGHT-CLICK   erase (set intensity to 1)
rad field: radius of editing brush
3Dbrush radiobutton: toggle 3D/2D brush (2D brush 
		     only edits viewed slice) 
SEND PNT button	 save location of cursor for
 		 surfer 
GOTO PNT button	 goto location of point saved by
		 surfer 
2nd imagedir field: name of 2nd volume to read in 
READ button: read in 2nd volume
COMPARE button:	toggle between two volumes (must
		first read in 2nd imagedir) 

Unsupported
WMTRUNC button
PLANEFILTER button
low field
high field
grayhigh field
HISTOGRAM button

Standalone Operation

Tkmedit can also be run as a standalone program
from anywhere in the directory tree from the
command line:

Use: tkmedit name imgdir [surf] [-] [-tcl script]
     tkmedit local [-] [-tcl script]

  name: subjectdir name         (in $SUBJECTS_DIR)
imgdir: orig,T1,brain,wm,filled (in $subject/mri)
  surf: e.g., rh.smoothwm       (in $subject/surf)
  dash: disable editing

