Usage
digitizeImage(image.file, landmarks.file=NULL, control.points.file=NULL,
curve.points.file=NULL, shapes.file=NULL,
landmarks.ref=NULL, curves.ref=NULL, image.id=NULL,
landmark.color.blur = 'blue', landmark.color.focus = 'green',
curve.color.blur = 'purple', control.point.color.blur = 'purple',
control.point.color.focus = 'red', landmark.radius = 4,
control.point.radius = 4, marker.stroke.width = 2, app.dir=NULL)Arguments
image.file
a file path to the image or images to be digitized. This can be a folder containing one or more images or a vector of file paths of one or more images.
landmarks.file
a file path indicating where the landmarks should be loaded from and/or saved to. If landmark.file is a folder, then landmark files are assumed to have the same name as the images (with a .txt extension). Alternatively, this can be a vector o
control.points.file
a file path indicating where the Bezier control points should be loaded from and/or saved to. If control.points.file is a folder, then control point files are assumed to have the same name as the images (with a .txt extension). Alternatively,
curve.points.file
a file path indicating where the Bezier curve points should be saved to. If curve.points.file is a folder, then curve point files are assumed to have the same name as the images (with a .txt extension). Alternatively, this can be a vector of
shapes.file
a file path or folder indicating where shape files should be saved. This is a new format that is currently only intended to be used when collecting 2D data. The other input types (landmarks.file, control.points.file, curve.
landmarks.ref
landmarks to be digitized. This can either be a file path to a .txt file containing the landmarks (listed in a single column, each on a separate line) or a vector of landmark names.
curves.ref
curves to be digitized. For each curve, the name of the curve, the starting point and the ending point must be specified. curves.ref can either be a three-column matrix (with the curve name in the first column, the starting point in the secon
image.id
Image IDs to be saved with each image. These will be used to reference shape data in the output of readShapes. If NULL, the filenames of the images will be used (without the file extension). landmark.color.blur
The color of an unselected landmark. It might be necessary to change if the background color is close to the default. Colors must be valid SVG color names or codes (e.g. "hotpink", "#4B0082", etc.). A web-search for "SVG color codes" will indicate several
landmark.color.focus
The color of a selected landmark. See landmark.color.blur.
curve.color.blur
The color of digitized curves. A different color for a selected curve is not yet supported. See landmark.color.blur.
control.point.color.blur
The color of an unselected control point. See landmark.color.blur.
control.point.color.focus
The color of a selected control point. See landmark.color.blur.
landmark.radius
The radius of digitized landmarks.
control.point.radius
The radius of the Bezier control points.
marker.stroke.width
The thickness of the lines used to draw the landmarks and control points.
app.dir
Changes the shiny app directory for debugging.