pointPicker {imageUtilities}R Documentation

interactive interface for selecting points on an image (grid).

Description

interactive interface for selecting points on an image (grid).

Usage

  pointPicker(imgArray = NULL, vp = NULL, numPoints = 4,
    VERTEX_COLOUR = "yellow", LINE_COLOUR = "white",
    verbose = FALSE, ...)

Arguments

imgArray

the input image *array* to have the user click on. Supply this, OR

vp

handle to an existing viewport where the image is already plotted

numPoints

the number of points to have the user select. Default 4.

VERTEX_COLOUR

R colour (string) specifying the colour to draw the points in on the graphics window. NULL to omit, default "yellow".

LINE_COLOUR

R colour (string) specifying the colour to draw lines between the points (NULL to omit). Default 'white'

verbose

boolean, whether to spit out extra debug info.

...

arguments passed in to drawImage

Value

a numPointsx2 array (X,Y) of points the user clicked on. The points are 1-based and the *middle* of the top-left pixel has coordinates (1,1).

See Also

Other draw: drawImage, imdisp, imdrawabline, imdrawline, plotPoints


[Package imageUtilities version 1.0.3 Index]