Select image regions interactively

Share:

Description

These functions let you select a shape in an image (a point, a line, or a rectangle) They either return the coordinates of the shape (default), or the contents. In case of lines contents are interpolated.

Usage

1
2
3
4
5
grabLine(im, coord = TRUE)

grabRect(im, coord = TRUE)

grabPoint(im, coord = TRUE)

Arguments

im

an image

coord

if TRUE, return coordinates. if FALSE, content

Value

either a vector of coordinates, or an image

Author(s)

Simon Barthelme

See Also

display

Examples

1
2
3
##Not run: interactive only 
##grabRect(boats)
##grabRect(boats,TRUE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.