erase: Eraser

Description Usage Arguments Value See Also Examples

View source: R/erase.R

Description

Suppresses a zone (determined on an image) from a given selection stemming from a zone image

Usage

1
erase(zone.img, img, interact = TRUE, shape = "rect", pts = NULL)

Arguments

zone.img

the zone image to be modified

img

the image on which the zone to suppress is selected

interact

if TRUE, the zone is determined interactively. Else pts is used as a matrix of control points (see create.zones)

shape

"rect", "para" or "circle"

pts

Matrix containing the control points (see create.zones)

Value

returned a zone image without the selected zone

See Also

img.zone,plotimage

Examples

1
2
3
4
5
data(zone.img)
plotimage(zone.img,z=TRUE)
data(img)
zone.img2=erase(zone.img,img,interact=TRUE,shape="rect")
plotimage(zone.img2,z=TRUE)

multifluo documentation built on May 2, 2019, 1:07 p.m.