clip.image: Create an image by clipping

View source: R/edges.R

clip.imageR Documentation

Create an image by clipping

Description

The function allows to define a clipping region by arguments xind and yind or interactively by mouseclicks. A new image is created by cutting out the clipping region.

Usage

clip.image(img, xind = NULL, yind = NULL, compress=NULL, ...)

Arguments

img

Object of class "adimpro" as created by read.image, read.raw or make.image.

xind

xind defines the horizontal extension of the clipping region.

yind

yind defines the vertical extension of the clipping region.

compress

image data are stored as raw-vector (TRUE) or array of integers (FALSE). compress=NULL keeps the format used in img.

...

additional arguments to show.image can be passed here.

Details

If both xind==NULL and yind==NULL, show.image is called and the clipping region can be set by two left mouse clicks to opposite corners.

Value

An object of class "adimpro".

Author(s)

Karsten Tabelow tabelow@wias-berlin.de and Joerg Polzehl polzehl@wias-berlin.de

See Also

read.image, read.raw, make.image, awsimage, awspimage

Examples

## Not run: demo(manipulate)

adimpro documentation built on Sept. 30, 2024, 9:17 a.m.

Related to clip.image in adimpro...