imCrop {xRing} | R Documentation |
A GUI for cropping an image
imCrop(im)
im |
a cimg object |
a cropped image
if (interactive()) {
file_path <-
system.file("img", "AFO1046.1200dpi.png", package = "xRing")
im <- imRead(file_path)
print(dim(im))
im_crop <- imCrop(im)
print(dim(im_crop))
}