Learn R Programming

xRing (version 0.1.1)

imCrop: Crop Image Interactively

Description

A GUI for cropping an image

Usage

imCrop(im)

Arguments

im

a cimg object

Value

a cropped image

Examples

Run this code
# NOT RUN {
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))
}

# }

Run the code above in your browser using DataLab