grab: Select image regions interactively

Description Usage Arguments Value Author(s) See Also Examples

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. Note that grabLine does not support the "pixset" return type.

Usage

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

grabRect(im, output = "coord")

grabPoint(im, output = "coord")

Arguments

im

an image

output

one of "im","pixset","coord","value". Default "coord"

Value

Depending on the value of the output parameter. Either a vector of coordinates (output = "coord"), an image (output = "im"), a pixset (output = "pixset"), or a vector of values (output = "value"). grabLine and grabPoint support the "value" output mode and not the "im" output.

Author(s)

Simon Barthelme

See Also

display

Examples

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


Search within the imager package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.