im_crop: Image cropping

View source: R/pictplot.R

im_cropR Documentation

Image cropping

Description

Image cropping

Usage

im_crop(im, margin)

Arguments

im

an image

margin

a numeric vector.

Value

an image

Examples

plot(im_crop(regatta, 100)) # crop all four sides with the same value
plot(im_crop(regatta, c(100, 50))) # vertical, horizontal
plot(im_crop(regatta, c(0, 50, 50, 200))) # top, right, bottom, left

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.