| crop | R Documentation |
Crops selected frames to a given geometry. Wraps magick::image_crop.
crop(images, geometry, gravity = NULL, repage = TRUE, frames = NULL)
images |
an object of class |
geometry |
a geometry string specifying the cropped region,
e.g. |
gravity |
anchor point for the crop: one of |
repage |
logical. If |
frames |
integer vector of frame indices to duplicate. Defaults to
|
a magick-image object
After each operation a message listing the updated frame sequence is
printed in interactive sessions. Use
stopmotion_verbosity(FALSE) to suppress these messages, or set
options(stopmotion.verbose = FALSE) in your script or
‘.Rprofile’.
dino_dir <- system.file("extdata", package = "stopmotion")
images <- read(dir = dino_dir)
crop(images = images, geometry = "200x200+50+50")
crop(images = images, geometry = "200x200", gravity = "Center", frames = 1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.