EastyTrain instructions:

Usage:
  java EasyTrain [-isYUV | -isRGB] imagefile...

Image files should be saved from the Tekkotsu RawCam window as PNG
files with YUV encoding (the default), but the program can also handle
images in RGB encoding.  EasyTrain displays the images as RGB in
either case.

1. Raw image window: displays the current image file.  Use the up and
down arrow keys to cycle through all the image files.

2. Segmented image window: displays the color-segmented version of the
current image file.  (If no colors are defined yet, it will be all
black.)

3. Color space window: displays pixels from selected image regions in
a 2D color space representation.  Draw a bounding region with the
mouse to select pixel clusters.

4. GUI window: contains buttons to add or remove colors, load or save
files, etc.

================

Start by entering a color name, say, "pink".  (Type the color name in
the dialog box at the top of the GUI window, and hit "enter".)

Now use the mouse to circle a pink region in the raw image window.
This will cause a cloud of pink pixels to appear in the color space
window.  (Note: if you have a pink object on a green background and
you just draw a big box around it, so that some green pixels are
included in the box, that's okay, because the green pixels will be far
enough away from the pink ones in color space that you can easily
separate them.)

Use the mouse to circle just the cloud of pink pixels in color space.
Once you've done that, the pink regions should appear in the color
segmented image window.

You can add to a region by holding down the shift key and drawing with
the mouse.  You can subtract from a region by holding down the control
key and drawing.

You can use the up and down arrow keys in the raw or segmented image
windows to cycle though the images.  You can circle zero or more
regions in each image.  Pixels from all the images will be lumped
together in the color space window.

If no color name is selected, EasyTrain will show you the color space
with all the pixels from all the images.  If you do have a color name
selected, you can deselect it by holding down the control key and
clicking on the color name in the GUI window.

After you've defined all your colors, use the "Save" button to save
your work.  The area boundary info for each image will be saved, along
with the .col and .tm files needed by CMVision.  That means if you
come back later and run the program again, loading in the same image
files, the program will also load in the boundaries you defined, so
you can continue to edit them.

================

Note to Linux users: if you're receiving warnings about inability to locate
a system preferences file, this is because of the way Java was installed.
See http://java.sun.com/j2se/1.5.0/install-linux.html for a fix.
