powered by
Suppresses a zone (determined on an image) from a given selection stemming from a zone image
erase(zone.img, img, interact = TRUE, shape = "rect", pts = NULL)
the zone image to be modified
the image on which the zone to suppress is selected
if TRUE, the zone is determined interactively. Else pts is used as a matrix of control points (see create.zones)
"rect", "para" or "circle"
Matrix containing the control points (see create.zones)
returned a zone image without the selected zone
img.zone,plotimage
# NOT RUN { 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) # } # NOT RUN { # }
Run the code above in your browser using DataLab