R/showplot.R

Defines functions showPlot

# show image and capture point
showPlot <- function(image, fname, color){
    grDevices::x11()
    graphics::plot(image)
    bounds <- graphics::locator(type = "p", col = color)
    points <- checkBounds(bounds = bounds, fname = fname)
    grDevices::dev.off()
    return(points)
}

Try the boundingbox package in your browser

Any scripts or data that you put into this service are public.

boundingbox documentation built on July 1, 2020, 11:50 p.m.