Basic │
FullView │
Shortcuts │
Rapid │
Scaling │
Grid │
ptLines │
Shapes │
Other
traceFigure can be used to manually digitize points on an image. For example, if you have an image of a line graph, you can digitize
selected points. By
digitize , we mean
create a set of x,y coordinate pairs . These pairs can be saved as a CSV file, for use in
a spreadsheet, etc.
traceFigure is best used when the number of points to be digitized numbers is in the 100s. While a larger number (i.e.; a few thousand) can be handled, processing
will be noticeably slow (it can take several seconds to perform bulk operations).
Displaying an image .
Although you can don't need to have an image to digitize , the ability to trace (and otherwise locate) points on an image is what makes traceFigure
useful!
There are two ways of drawing an image onto the work area .
Use the Upload at the top of the screen. This allows you to upload an image file from your computer -- which will then be drawn
onto the working area .
Use the Load image button in the Other specs menu . This allows you
to use an image currently on the server. This image file must be in (or under) the directory that contains traceFigure. So this is only useful if you have
some control of the contents of your server (or are running traceFigure in standalone mode -- in which case files on your hard drive can be loaded ).
The basics. Digitizing points is done by moving the cursor (displayed as a large +) over a spot on the image, and then recording the location.
First, click on the Add points button (its background will change from yellow to green)
The cursor becomes a large +. Move the cursor onto the work area (where the image is drawn),
and place it over spot whose position you want to digitize
Since the mouse cursor can be imprecise, to see actual spot to be digitized -- click a mouse button. A ✠ crosshair is drawn.
For finer movements, use the arrow keys (the ←, ↑ →, and ↓ keys) -- the ✠ crosshair will be displayed and will move as you hit arrow keys.
Note: the ArrowRes input box (in the MoveOptions menu) controls how many pixels are moved with each arrow key click.
Pixels are defined using the screen pixels: so a 5 pixel move is always the same movement on the screen. For larger images, a n pixel move is smaller move in terms of percent of height or width location on image.
When you are over a desired spot, hit the Space bar to record the location.
Repeat for as many points as you wish to record
You can specify several different ptLines : just hit the Enter key (while the mouse cursor is over the image), and a new ptLine is started. Or, click on the
New button in the ptLines container.
Note: ptLine is shorthand for any collection of points -- they might be arranged to form a line, but they don't have to be (usually, they aren't)!
The Lx_ input boxes can use used to set the name of a line (use just one word). The text above this lists how many points are in the line
To display list of point locations in a text box (in a CSV format suitable for importing into some othe program), use the Show point values under ⤷
(the manipulate ptLine menu)
Full view.
You can switch between a
full view , or a
regular view .
Full view : the working area (where the image is displayed) will occupy almost the entire window. The top line will still be displayed, but
the list of options (the column on the right), the ptLine summaries (the column on the right), and status information (2nd and 3rd line at the top) are not shown
Regular view : the working area is in the middle of the window, with other items (such as the options menu) shown
To enter (and exit)
full view , click the
button on the top line.
While in
full view mode, you can display options menu by ..
clicking on the button.
After making your changes (i.e.; clicking on Add points , or changing tt>Move options), you can hide the menu by
clicking on the again.
Note:
is only displayed in
full view mode).
Hint: see the shortcuts for a mouse movement sequence that will bring up the options menu!
Shortcuts
Keyboard & mouse shortcuts:
These shortcuts work when Add points is active.
Place the mouse cursor over a recorded point to view the points ptLine [line name @ x location ,y location] information
Hitting an arrow key will draw the ✠ crosshair at the current spot (if isn't already being displayed)
Hitting a mouse key while on top of the ✠ crosshair will hide the ✠
Arrow & keypad keys:
The Home, PgUp, PgDn, and End keys will move in diagonal directions
The 5 key is the same as hitting a space key
The + (-) key will increase (decrease) the ArrowRes
The Alt-L key will open the ptLine manipulation menu
Mouse actions:
Double clicking the mouse button simulates hitting a Space key
A long click (clicking, and holding the mouse button down for more than a second), simulates hitting
Alt-L (toggle view of the ptLine manipulation menu)
Clicking the right mouse button (rmb ) simulates hitting the Tab key
Double clicking the right mouse button (rmb ) simulates hitting the Esc key
Holding the right mouse button down and moving the mouse (more than 10 pixels) will scroll the image (if there are no scroll bars, nothing will happen)
Rotating the mouse wheel will zoom in, and zoom out, on the image
While in full view mode
Moving the mouse while the holding down the left mouse button has several effects:
Move left: toggle view of the options menu
Move right: toggle view of the ptLine summaries
Rapid Entry. For quick entry of many points, you can select (under the
MoveOptions menu) ...
Continuous : Points are automatically recorded as you move the mouse (or move the ✠ using arrow keys).
Segment : Points are recorded in linear segments
Useage:
Click on the desired checkbox ( Continuous or Segment ), and click on the Add points button
Move the mouse (or use arrows to move the ✠ ) to the first point to digitize
Hit the Tab , key or the A key, or click the rmb (right mouse button).
This enables continuous (or segment) entry, and records the current point.
For continuous entry:, just move the mouse crosshair (or ✠). A new point will be entered when the crosshair (or ✠) is 10 pixels away from the prior point (starting with the spot where you hit the Tab key)
Note this is pixels on the screen (not pixels of the original image) So 10 pixels in an zoomed in image yields a tighter set of points than 10 pixels in a zoomed out image.
For segment entry: move the move the mouse crosshair (or ✠) to the end of the ptLine segement, and hit Space (or double click the mouse). As with continuous , points will be recorded every 10 screen pixels
along this segment. Move the mouse crosshair (or ✠) again, hit Space (or rmb), and a new segment is recorded that starts from the end of the prior segment.
To stop continuous (or segment ) entry, hit Tab ( or A or rmb)
again).
Note: use the Resolution text box to change the 10 pixel resolution (for either continuous or segment entry)
Scaling . Points are recorded using the location on the image: in percent of width and height of image.
This location is zoom and image resolution independent. Thus, a location of 50.00 is in the middle of the image regardless of how much it is zoomed in (or out), and regardless of
how much of the image is outsize of the viewport (i.e.; if you must use the scrollbars).
You might find it useful to scale these into image location values into real-world values; say that correspond to values in a line graph.
This is done using the Scale Specs menu
Scaling works by comparing the location of a point to the location of an origin , and then using locations of known X and Y values. In all cases, the location
is relative to the height and width of the image (i.e.; 60% to the left and 23.31% from the top).
The set origin button is used to enter the origin. After clicking on it, move the mouse crosshair (or ✠) over the origin, then hit Space. And then enter the X and Y values corresponding to this
point (often these will be 0 and 0, but you can choose any values you wish)
The specify X (and specify Y ) button is used to select a tic mark on the X (or Y) axis. After selecting the point, enter the X (or Y) value corresponding to this tic mark
You don't actually have to find a tic mark. Any spot on the X (or Y) axis can be used -- so long as you know its value.
For your convenience, you can chose one of several sets of scaling parameters (both image locations and real values) -- with the origin in the center of the image and
xtic and ytic markers in the lower right and upper left corners (respectively). Just click on the
defaults button (keep clicking to cycle through the set).
Grid .
Display a reference grid on top of the image.
Note: before displaying a grid, you
must specify the
Scale Specs
Clicking the Grid button will bring up a box showing grid specification options.
After setting these options, click the Submit button!
Grid options :
Enable grid checkbox : Click this to enable the grid. Unclick, and the grid is removed
Snap to grid : All entered points will be snapped to the grid. That means that instead of recording the point where the cursor (or ✠) is, the closest grid
vertex is used. This is ignored if the enable grid checkbox is not checked.
The gridlines snapped to do not have to be displayed! Thus, the resolution of snapping can be much greater than the actual gridlines displayed.
Grid resolution
The resolution of the grid, in real values (not in image location). You can specify different scaling for x (vertical grid ines) and y (horizontal grid lines).
The value must be >0
Grid display frequency
What fraction of the grid lines to display. More precisely, display one of every N grid lines (so a 5 means display every fifth grid line .
You can specify seperate display frequencies for X and Y grid lines.
A value of 0 means do not display any gridlines (except for the grid line(s) through the origin)
Hint: to not display any grid lines (including ones through the origin), set opacity to 0.0.
Grid display: line style
Choose one of the line styles.
Grid display: line thickness
The thickness (width for vertical lines, height for horizontal lines) of the gridlines, in pixels
Grid display: line color
Choose a color to use for the grid lines.
Grid display: line opacity
Must be a number between 0.0 and 1.0 (inclusive).
0.0 means gridlines are fully transparent (not visible). 1.0 means non-transparent (will coverup anything below)
Note: place the mouse cursor over a grid line to view its X (or Y) location (in scaled values, not in pixels)
Working with ptLines . You can delete, modify, or view the digitized results stored in a ptLine... by clicking on the
⤷ icon .
A box will open showing a menu of actions.
Shapes:
As a convenience, you can use the
Shapes menu to enter the following shapes (as ptLines): lines (any angle, or vertical or horizontal), rectangles, circles, and polygons.
Points along the edge of these shapes are recorded and displayed (the
Resolution option under
MoveOptions controls how dense these points will be).
To enter a shape, first select the desired shape , and then enter vertices (i.e.; by moving the cursor, and then hitting space)
⇀ Lines: enter the beginning and ending vertices of a ptLine (move the cursor, hit space). If you select either the vertical or horizontal checkbox, then the ptLine will be vertical or horizontal (regardless of where you place the 2nd vertex)
◻ Rectangle: enter the vertices of the first side (move the cursor, hit space). Then, enter a vertice the proper distance on either side of the line. A rectangle will be displayed.
○ Circle: enter the origin, then a point on the diameter.
☆ Polygon: enter the first vertex, then the second, etc. After you have entered the last vertex, hit the
X or Tab key (or the rnb ), and the polygon will be completed
Miscellaneous specs:
Marking selected points -- a • is placed on the screen for each recorded point.
Click, the MarkPoints checkbox
You can then select the color , the size , and the
character attributes used for the marker.
Typically, a • marker is used.
If you change the color (or size or character), prior markers are not effected.
However, if you display the line again, all points will be shown using the currently selected marker attributes .
Hint: change the color right after you start a new ptLine!
Tracking movement. You can view the current location of the mouse crosshair (or ✠)
Click the Track checkbox.
A box will open at the top of the screen showing the location both in scaled measures, and by image location (@px ).
The scaled location will not be displayed if you haven't specified the
ScaleSpecs parameters.
Jump to a specified location
Open the JumpTo menu
Enter X and Y coordinates
Click on the pxJump button to jump to this image location (note that the upper left corner of the image is at 0,0)
or, click on the valJump button to jump to this image location -- you must first set the ScaleSpecs options!
Removing the last point in the current ptLine (you can do this iteratively): with Add points enabled, move the mouse anywhere over the image, and hit the Del key
To support use of the Tab and arrow keys to select options and move around the image -- they can not be used to switch input fields.
If this is a hassle, you can disable the Tab key (and use A to enable continuous and segment entry) by clicking
on the NoTab checkbox in the Other specs menu
Displaying image from the server . To retrieve an image from the server, and draw it onto the working area (rather than using an image you upload), look in the
Other specs . menu:
Enter a path/filename (which must relative to the location of traceFigure on the server),
hit Load image
Hint: the dir will display a list of files in the server's current directory (it will be displayed in a new window)
Note: if you are running traceFigure in standalone mode (by reading it directly from your hard drive), Load image can be used to
retrieve any file on your local computer. In fact, the Upload button is disabled -- you must use Load image to change the image.
Syntax for specifying files: file:///x:/dir1/dir2/afile.ext . for example: file:///d:/photos/house/basement1.jpg
The dir button will display files in the directory that traceFigure was loaded from.
Technical note : by default, when traceFigure loads a sample line graph is displayed (figure4.gif ). You can change this default
image by editing the traceFigure source code.
How are images displayed? When an image is chosen via Load image or via Upload , it will be written to the
working area . If the image is not too big, the
image is written as is. However, if it is too big, it will be resized to fit into the working area.
You can resize the working area by resizing the browser window -- the larger the browser window, the larger the working area.
However, traceFigure isn't quite smart enough to detect resizing -- and point placement can get messed up
Thus, if you resize the browser window, it is recommended that you reload traceFigure (maybe we will enable resize detection in a future release)!
The size button will reset the image size to be either the images's actual size. Or, if the size it too big, a size that will fit into the
working area .
You can resize the image to any dimension by inserting your own values in the height and width
text boxes.
The image will automatically be scanned after you enter each value (and then hit the Enter key).
Careful... : for better or worse, you can size the image to be greater than the working area -- or even greater than the browser window!